fixes #764

This should really show the count of all badges and not the count of badges purchased, since we can have need-not-pay badges assigned to groups and whatnot.