Count Received Bytes ?

Hi,

Someone could help me because i would like to write a little application
with delphi to counts the bytes which are received/sent from internet.
But i don't know how to perfom it ....

How can i do to put an application in a service state under Windows NT

Thanks for all

Best regards

O. BELLON