Write a program that counts and prints the number of characters in it's own source code to standard output.
The number must be generated from counting the characters.
This Ruby solution would not be allowed:
puts 6
because it is not calculated. Spaces, tabs, new lines, etc should be counted.
The program must be smallest possible in any programming language.
1
\$\endgroup\$echo 'wc -c $0' > x ; sh x
... I think this is a nice question, maybe the rules should be a little more precise... \$\endgroup\$