See you need to do couple of things.

When someone views the Article you should increase the counter in the database by 1
Then when someone views the counter or when you want to display it just display the number from the database.