The dialogue for # of quarters in city trigger on # of quarters of a given type in the whole civilisation. Had to take a second look when I suddenly got a line about 30 farmers quarters in a single city, when that is the empire wide total.