Fixed counting of posts