for views count, are you showing the items where the name of the item is a database reference ?
...then add a view count field and every time you show the item increment the view count by 1
for downloads you don't use a plain file link - so rather than linking direct to the file, link to an intermediate php script:
that script then increments a download counter and then serves up the file..