Kick counting

So I know once you turn 28 weeks you start kick counting. I know you have to count at least 10 kicks within 2 hrs? But does this apply all day long or as long as you get the kicks in the time frame? how does the entire thing work?