First, you really shouldn't use hard-coded character values, instead prefer the actual char values. Also, your count array is counting the wrong things, as well as being an illegal declaration and not setting its values. Try something like this instead:
#include <string>
#include <iostream>
int main() {
std::string sentence;
std::getline(std::cin, sentence);
unsignedint count[26] = {0}; // number of letters in the alphabet
for (unsignedint i = 0; i < sentence.length(); ++i) {
// If the letter is lower case alphabetical
// (you can change for uppercase if you want, too)
if (std::isalpha(sentence[i]) && std::islower(sentence[i]))
++count[sentence[i] - 'a'];
}
for (char c = 0; c < 26; ++c) {
if (count[c] != 0)
std::cout << static_cast<char>(c + 'a') << ": " << count[c] << '\n';
}
return 0;
}