implemented insert-by-query plan

ESCount