Put getting resources total into a separate method, we'll be using that
a lot