How UE comes to know about the MIMO capability of the network in NR?

Hi Folks, can someone tell me how UE comes to know about the MIMO capability of the network in NR?
In LTE, it can implicitly figure out the no of antennas from PBCH.
But in NR, single antenna port is used for PBCH.
Or, is it just through the scheduling info in DCI?

Yes, in DCI is given number of antenna ports and layers.

For number of antenna ports info can be taken from mib or rrc connection setup if it configured there.

Yes, for LTE, the info is available in MIB itself.
For NR, UE won’t know the max antennas supported by network unless it is configures in DCI, right?
Or is there another way?

For NR we discuss in term of layers i.e. SSB beams as we have active antenna so no antenna port present physically on antenna.
SSB beam info present in RRC reconfiguration.
DCI info read on PDCCH after RACH synchronisation.