Added User#count_badges_by_material.
Merge branch 'master' of github.com:fimmtiu/badges