Implmented getNumItems()

It should work