get number of google search results using JAVA
===

i searched a lot to retrieve the number of search results in google using java, but nothing worked.
i have tried Google Custom Search API aswell.
i don't want the title/url of results, just number of total results found.
can some one please guide me?

thank you.