counter set for number of objects