Fine. I created
code:
count = new Array();
outside the function then inside it I replaced times with count[Contact.Email] so that it becomes:
code:
count[Contact.Email] = count[Contact.Email] + 1;
But
code:
Debug.Trace(count[Contact.Email]);
prints:
-1.#IND
What's wrong now?
Edit: Solved. Had to check if it's != null.