keep track of the total count