# Java API docs issue: Count

**URL:** <https://discuss.elastic.co/t/java-api-docs-issue-count/3083>\
**Category:** Elasticsearch\
**Created:** [July 9, 2010, 1:08pm UTC](https://discuss.elastic.co/t/java-api-docs-issue-count/3083 "2010-07-09T13:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larrry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larrry/32/18733_2.png) [@larrry](https://discuss.elastic.co/u/larrry)\
**Post date:** [July 9, 2010, 1:08pm UTC](https://discuss.elastic.co/t/java-api-docs-issue-count/3083/1 "2010-07-09T13:08:11Z")

</div>

When I use the code snipped provided for the Count api call my IDE reports two issues.

The first is that querySource is not public and can't be accessed outside the package

The second is that the provided code snippet is missing a closing paren.

Here's the code from the API doc page:

CountResponse response = client.count(countRequest("test")  
.querySource(termQuery("\_type", "type1"))  
.actionGet();

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:22am UTC](https://discuss.elastic.co/t/java-api-docs-issue-count/3083/2 "2017-07-06T04:22:28Z")

</div>

Closed on July 6, 2017, 4:22am UTC


