Determine number of contacts with Google People API
<p>I am using the Google People API to fetch a user's connections, and since the results do not include email addresses, phone numbers, etc. after I call people.connections.list and retrieve a total of 50 results I am then polling people:batchGet to fetch data for the users (which only accepts up to 50 users at a time). This works fine, and after looping over the results a few times I can import all of the contacts. Great!</p>

<p>But because of this setup and the need to loop (some users have thousands of connections after all) I am using a process that (basically) redirects over and over until we're done. This is also working fine, but I'd love to show a progress bar on the redirect screens, and in order to do this I'd need to know the total number of connections the user has. I can't seem to find any way to determine the number of total results that people.connections.list could return (provided no filters or sync tokens are passed in). Does anyone know a way I can determine how many connections total that we need to loop over with people.connections.list?</p>