probably it is better to call the Contacts API for getting the total number of contacts