Function to ask how many free gathering slots there are.
Prepare to talk to CouchDB.