improved getAllUserCount() + fixed workaround