Getting territory numbers