Simplified the definition of counts.