If the count >0 hasn't been modified for a certain duration (e.g. after 24h), reset it to 0. (Alternatively, set the count to 0 at 4 in the morning.)