fix post counting