simple pair counting step