In the database(or file on disk) ! Create a table named downloads:
FileName, count
Put first all files to be downloaded in the table with count 0
increment by 1 every time you download
please follow the tutorials first
http://www.asp.net/learn/linq-videos/video-232.aspx