#C14054. Count Characters in a String
Count Characters in a String
Count Characters in a String
Given a string, count the frequency of each unique character in the string. Your task is to output each character along with its count on a new line, following the order of their first appearance in the input.
All characters are considered, including letters, digits, symbols, and whitespace. If the input is an empty string, no output should be produced.
inputFormat
The input consists of a single line containing the string. The string may include letters, digits, spaces, and special characters.
outputFormat
For each distinct character in the input (in the order of appearance), print a line with the character followed by a space and its count.
## sampleabcd
a 1
b 1
c 1
d 1
</p>