Census data (given in the Gazetteer of Scotland in 1901) shows that the population had grown in 1881 to 5538.
Dr Robertson says that most of the population lived in 'villages' (really very small hamlets) while the rest lived in 'rural areas'.