Help to see how many trackers are selected

Is there something in the API or other sources to check how many trackers you have selected. For example I would want to have 2 trackers selected to set the scale, is there a snippit of code that allows me to see that I have 2 trackers selected or tell me there arent 2 selected.