I would say first off add a view_count field to your migration for the post model and then add an increment_view_count method to the post model.
You can then call that method from within the view method of your post controller.
Something like that anyway.
Keith