字符串匹配问题中出现的错误,无法运行

这个程序为什么无法运行?报错是count是不明确的符号

题目是字符串匹配,要求读入两个字符串a,b,判断前者是否是后者的字串,输出为前者在后者出现过几次

#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;

char a[50], b[50];
int la, lb, count;


void input_data()
{
    cin >> a;
    cin >> b;
}

void solve()
{
    bool match;
    la = strlen(a);
    lb = strlen(b);
    count = 0;
    for (int i = 0; i <= lb - la; i++)
    {
        match = true;
        for (int j = 0; j < la; j++)
        {
            if (a[j] != b[i + j])
            {
                match = false;
                break;
            }
            
        }
        if (match)
            count++;
    }
}

void output_data()
{
    if (count == 0)
        cout << "NONONO" << endl;
    else
        cout << count << endl;
}

int main()
{
    input_data();
    solve();
    output_data();
            
    return 0;

}


c++的库函数有关键字count ,冲突了呀,换个其他名字就行

用的是visual studio 2022

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^