title: Update badge counter in Swift
body: <p>With following code I get (2) in the badge icon immediately after app compiling:</p>
  
  <pre><code>func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
      let installation = PFInstallation.currentInstallation()
      installation.setDeviceTokenFromData(deviceToken)
      installation.badge = 2
      installation.saveInBackground()
  }
  </code></pre>
  
  <p>I did try the next variant: Initialized a new <code>var badgeCount = 0</code> and later:</p>
  
  <pre><code>func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
      badgeCount++
      let installation = PFInstallation.currentInstallation()
      installation.setDeviceTokenFromData(deviceToken)
      installation.badge = badgeCount
      installation.saveInBackground()
  }
  </code></pre>
  
  <p>But when I get new notifications it doesn't update to +1. Is anyone know how to fix it?</p>