Fixed an issue with the global count helper when a user didn't have read access