Implemented private size() and public size()

Not sure if they would work. Still need to test them.