This is such a shame, anywhere this is mandated they should mandate by mass and for medical/vitamins per mass of active ingredient
Worse, I've seen CVS do things like place a 180-count package of generic medication next to an identically-sized 200-count package of the equivalent name brand, with the generic costing a bit less, but with a slightly higher unit price due to the mismatched quantities.
They all are labelled, but it's still customer hostile to create comparison fatigue.