Improved btagging counter.