From Tracker Software PDF SDK
The method retrieves the color count for the page.
HRESULT CountColors([out, retval] ULONG* nCount);
- [out, retval] Pointer to the variable which will hold the color count.
Returns S_OK if operation was successful or error code in other cases.