tiny tweaks, and getCount() added to string type so "count" word will
work.
Much cycle detection stuff, but untested.