Implemented capacity() function.
Implemented count() function.