#include <iostream>
#include <string>
#include <unordered_map>

int make_count(int& calls) {
    ++calls;
    return 9;
}

int main() {
    std::unordered_map<std::string, int> counts{};
    int calls{0};
    counts.try_emplace("red", 2);
    counts.try_emplace("red", make_count(calls));
    counts.try_emplace("blue", 1);
    std::cout << counts.at("red") << ' ' << counts.at("blue")
              << ' ' << counts.size() << '\n';
    std::cout << "calls " << calls << '\n';
    return 0;
}
