Changed priority to 1 on template_redirect hook to update views count as soon as wp is loaded
Add check for is_trackback / is_feed when updating views count
Code clean up