moved escaping logic into ElasticSearch document output source class
consolidated and enhanced counting logic
addressed discarded unit value warnings
updated example
enhanced the es:count command