or give each object a instance variable called "ivClickOrder" (number set to 0)
set a global variable "gvNumberOfObjectsClicked" - number set to 0
if object clicked
and
object.ivClickOrder=0
then
.................. : increase gvNumberOfObjectsClicked
.................. : object.ivClickOrder=gvNumberOfObjectsClicked
not tested - just an idea