Created the count method and updated the get method