Intuitive, Go Solution
\nfunc countMatches(items [][]string, ruleKey string, ruleValue string) int {\n\thashMap := make(map[string]int)\n\thashMap["type"] = 0\n\thashMap["color"] = 1\
```\nfunc countMatches(items [][]string, ruleKey string, ruleValue string) int {\n\thashMap := make(map[string]int)\n\thashMap["type"] = 0\n\thashMap["color"] = 1\n\thashMap["name"] = 2\n\n\tvar res int\n\tfor _, item := range items {\n\t\tif item[hashMap[ruleKey]] == ruleValue {\n\t\t\tres++\n\t\t}\n\t}\n\treturn res\n}\n```
['Go']