Refactored infer_geocodes. Made the meaning of location_count slightly clearer.