Refactored the get[size]Cities functions with .filter and .map