Upcount per secound

how can i script that a variable of the type float that starts with 0 will count up +0.01 every secound?
thank you!

var count;

private var time;

function Update () {
//add the time that has passed this frame to 'time'
    time += time.DeltaTime;
//if one or more seconds has passed, reset time to zero and add 0.01 to 'count'
    if(time >= 1) {
        time = 0;
        count += 0.01;
    }
}