Added post count and made the header a session variable