void updateEntityCount(Archetype archetype, int count) { if (count > 0) { _entityCounts[archetype] = count; } else { _entityCounts.remove(archetype); } }