The number of buildings per data-unit tile stems from the number of buildings for the data-unit, multiplied by the fraction of the built-up area of the whole data unit that belongs to that data-unit tile. If the summation of built-up areas of the whole data unit is zero, the fraction of surface area is used for the distribution of buildings onto the data-unit tiles instead.
\approve @fd