Implemented most of the getNumberOfLeads() API request method.