count the hours