The MAPI_CountAddresses() function returns the number of addresses in the specified address list.
MAPI_CountAddresses(address_list_ID)
• address_list_ID – The ID of the address list whose addresses will be counted.
An integer containing the number of addresses in the address list.