continued work on ElasticSearch count and get functions