Fixed build error in Xcode 6 beta

Xcode 6 doesn’t allow overriding property access, and extending standard
count property doesn’t work anymore.