It's better to cache a frequently used count rather than perform a count query.