AccountsManager::count_users fixed