Created new methods of check and count on Phonebook.hs