before/after pixel counting test