counting histogram for ratio analysis added to the ratio context