Thank you @DanRathbun for the extended response, now everything is pretty clear about the count_used_instances
method.
@slbaumgartner, regading the coordinates issue, the next thread helped me to perform the conversion from local to global coordinates in nested elements.
Finally I could manage to retrieve the global coordinates of the centroids of every used instance in a model. Thank you all.