Refactoring code to only display presidents from new york and show number of presidents.