In your awk code you can insert something like this, for lines that match the requirements and have to be printed
if ($1 > number)
that is, each time $1 has an increment the count is incremented and printed, otherwise the current value of count is printed. I assume that not assigned variables (number, count) have a value of zero, but this may be different in other awk versions. If this is the case, just initialize them to zero in the BEGIN section of your awk program.