public int CountDocuments(string server, string db)
{
// Get information about the database...
string result = DoRequest(server + "/" + db, "GET");
// The document count is a field within...
JsonData d = JsonMapper.ToObject(result);
int count = int.Parse(d["doc_count"].ToString());
return count;
}