int main()
{
// Prompt the user to enter a string
cout << "Enter the word: ";
char s[Welcome];
cin.getline(s, Welcome);
// Prompt the user to enter a string
cout << "Enter the letter: ";
char a[e];
cin.getline(a,e );
First, I'm assuming you once had some variable named Welcome. You can't use it to declare an array's size, for while some compilers support it as an extension, it's not exactly legal in the current C++.
Second, I'd suggest maybe using std::strings rather than char[]s. There are a lot of benefits. :)
Third, what were you trying to do here? constchar string &s
Fourth, in your count function you have an int and a char both of which are named a. Fix!
Finally, there may be more issues but I won't look into them until you use [code] tags.