How to count the number of buildings if multiple buildings share the same podium?

For example: One Residential building and one office building are both constructed above the same mulit-floors shopping mall.

Would it be counted as only one mixed-use building; or
one residential building plus two nonresidential buildings?