Using countUsers method to return true count of users

resolves https://github.com/owncloud/core/issues/10713
See below. As a rule of thumb: Don't introduce static methods ;)