Available in LEADTOOLS Document and Medical Imaging toolkits.
uCount
Number of selected annotation objects.