Added viewcounter on single pages

Added viewcounter on content if single posts and added some code from
functions.php