Implement early termination for Count api through  request param