Because calling a function which increments a single variable takes less time than a millisecond.