Corrected bin counting