in reply to How many colors does a rainbow have?

All I remembered was that the colors could be remembered via the "name" Roy G Biv...I let my laptop do the counting. :)
$ echo roygbiv | tr -d "\n" | wc -m
Or for much nicer perl powered output:
$ echo roygbiv | perl -e '$a=<STDIN>;chomp $a;printf "There are %d col +ors in the rainbow.\n",length $a'