Solved 52, 53, 55. Factor out howMany function