get total number of items in data structure
remove debug call