Is there a way to print the sum of a particular view somewhere else on the site with PHP or a token?

I have seen a few ways to do this for drupal 6 but no luck finding code for drupal 7.

If someone could point me in the right direction I would really appreciate it.