title: Detecting Multiple/Continous Shakes in Swift
body: <p>I am using below code to detect shake on iPhone which works but only for single shake. I am trying to detect and count the number of shakes, if a user continuously shakes the phone.</p>
  
  <pre><code>override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent) {
      if (event.subtype == UIEventSubtype.MotionShake) {
          println("phone shaked")
      }
  }
  </code></pre>
  
  <p>Even when i vigorously shake the phone, it only detects one shake.</p>