Correlator with counting bug