Implemented getNumItems()

Return numItems