I'm agree that the functionality you suggested could be useful, but it
seems to be very specific.
We already could do smth. like: Model.all.group_by(&:attr_name).map{|
x, y| {x, y.size} }, or even
Model.group(:attr_name).count which will return the counts of the
elements.
--
Thanks, Ivan Povalyukhin