new integer counts methods (with slightly modified interface using ranges)