resource counters working

@robedgecombe @boredsteve