code refactoring - consolidated bike_count method