adding counter for iterate person's id list