Extract topic_with_post_count to view

* Introduce Scenic
* Simplify update_stats by using the view