A way to track whole grain grams per day

While grains seem to get a bad rap on these forums, whole grains are essential for heart-healthy eating. I would really like to be able to track the number of whole grains grams in a day.
Thanks!