cleaned up and commented
personCounterService is directly assigning controller variables, and renamed one of the variables