Better implementation of Player->getRessourceCount