checking number of items