Replaced int with NSInteger, made switchCounter private, code clean up
Minor edit