Did you intend to use building:flats? That is for specifying the amount of flats a building has. For entrances you are probably looking for addr:flats instead.

https://www.openstreetmap.org/node/11878556663
https://wiki.openstreetmap.org/wiki/Key:building:flats
https://wiki.openstreetmap.org/wiki/Key:addr:flats