Added Count lookups to knowledge base.
Fixed bug in TAIterator.