add get_resource_count to player