#include <iostream>
#include <unordered_map>
int main() {
// Step 1: Create an unordered_map to store key-value pairs.
std::unordered_map<int, int> hashMap;
// Step 2: Insert key-value pairs into the unordered_map.
hashMap[1] = 10;
hashMap[2] = 20;
hashMap[3] = 30;
hashMap[4] = 40;
// Step 3: Use the size() function to get the count of keys in the unordered_map.
int keyCount = hashMap.size();
// Step 4: Display the key count.
std::cout << "Key count in the hash map: " << keyCount << std::endl;
return 0;
}