Get total document count per collection

Can anyone help me with how we can get document count per collection using Java SDK 3.2