You need to write a hit counting script, called count.php for example, and redired all links to there. Heres how it might work
redirect your pages, so previously your link was
href="read_article?article_id=1"
now reads
href="count.php?url=read_article?article_id=1"
Then the count.php does some sql to insert or update an entry with the count + 1. and finally does this
header("Location: $url");
The important thinkg to remember is that you have to urlencode() the target url, so actually you links would look more like this
href="count.php?url=<?=urlencode("read_article?article_id=1")?>"
I'm not sure if you'll need to urldecode it afterwards before you can redirect, but you'll soon see when you give it a go.