BCGControlBar Pro for MFC
UINT CBCGPShellManager::GetItemCount ( LPCITEMIDLIST  pidl)

Returns a number of PIDL items

Returns
A number of items in the item list.
Parameters
pidlA pointer to item list to obtain a number of items from.