keep track of number of used entries