GOAL : To Implement a character counting program
This is how this counting system works :
input of the program is a set of printable ASCII characters . the program counts each type of character , and outputs the number of each character , starting from first mentioned character to last mentioned character .
Example :
input : aaaabbbbbcccc 123445b
output : 4 6 4 4 1 1 1 2 1
Which 4
is number of a
s , 6
is number of b
s , 4
is number of c
s , 4
is number of spaces () and so on . Also you can split answers with space (like example) , EOL , or anything other than numerals .
Rules
Your program must log to STDOUT or an acceptable alternative, if STDOUT is not available.
Your program must be a full, runnable program, and not a function or snippet
It's optional to mention the ungolfed version of program and/or a short explanation .
Test input : ThIs Is ThE iNPUT , WITH 72/2 CHARS!
Test output : 4 2 3 2 7 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1