1. 字符串尽量的使用getline方法
  2. toupper 大小写统一

using namespace std;

int main()
{
    string str;
    char word;
    getline(cin,str);
    
    cin>>word;
    unordered_multiset<char> mulset; 
    for(int i=0;i<str.length();i++)
    {
        mulset.insert(toupper(str[i]));
    }
    cout<<mulset.count(toupper(word));
    
    return 0;
}