closes #29 implemented 'Countable' interface.