Faster method of counts