Added a count method
Added count to dictionary