Cache counts in CountableExtractorBase
The count() method of CountableExtractorBase should support caching (enabled/disabled through an option), and implementors should implement doCount()
to get the real count instead of implementing count()
themselves.
Edited by Mike Ryan