Add counter to post and index