Counts the number of hours in visible events