var count = 0;//recebendo o valor 5 que você disse
$('#addCount').click(function(){
alert(count);
count++;
});
edit:
Ok, in fact I want to use this code to access several emails, from different providers, that I own. I get regular updates during the day from certain websites, and my goal is to leave a computer in my room that alone, accesses my boxes of entries in these providers, updating them at all times. If I receive the email I need, my autoIT script will notify me via a beep.
Having said that, in the case of the javascript, I just hope it will go to gmail.com, then go to yahoo.com, then go to uol.com, and then bol.com. I want the script to run in this order, like a loop.
I believe this would only be possible if I used a counter.
Could anyone help? Thank you!