fixed request count bug in base.html