Changed code in counter class for the hour stats.