Many aspects of the behavior of averages in ergodic theory are a matter of counting the number of times a particular event occurs. This theme is pursued in this article where we consider large deviations, square functions, jump inequalities and related topics.