Add counter during page initialize.