Determination of residents number in multi-apartment residential buildings