high-speed counting operations