Created the findCountOfLitterals

and added test to test file