Added chart option that counts elements in a category.