Count of user in role is always 0

The count of user in role is always 0 even when we have users 

This happened in case we have a custom SecurityEntityProvider, we missed to override the FindUsersInRole method in own custom SecurityEntityProvider class to set the totalCount parameter (count of the user in role). By default, it set totalCount = 0 that why we alway see 0 even when we have users 

public virtual IEnumerable<string> FindUsersInRole(string roleName, string usernameToMatch, int startIndex, int maxRows, out int totalCount)
            totalCount = 0;
            return Enumerable.Empty<string>();