Implement count method for Reader class