the problem you have is that $mails is a local variable. its scope is your script and thats it. you need to find a way to store the value. if you are familiar with databases i would suggest using a database, otherwise you may also use a flat text file to store the current value. either you can create a new file for each day or use one file an either reset the value every time the first access occurs after midnight, or store it with the date. for example, your file could have a structure like this:
2004-04-01;56
2004-04-02;32
2004-04-03;44
2004-04-04;97
2004-04-05;45
2004-04-06;57
2004-04-07;51
2004-04-08;51
2004-04-09;23
2004-04-10;55
2004-04-11;52
2004-04-12;33
2004-04-13;64
2004-04-14;1
then you look for the line with the current date, increment it by one and display the value when an email was sent.
essentially what you want to create is a counter - just that it doesnt count page hits, but email sends. you could also check www.hotscripts.com for simple counter scripts and modify them to your needs.