A simple push-up counter written in Swift