Getting number of random buildings.