Counts returns a dictionary and all necessary functions are called