Fix bug where session_count wouldn't be incremented on app resume.

Fixes #2060.
`integerValue` works for `NSString` as well, although the extra `numberForKey` can't hurt :wink: