You need to define materials making heterointerface and their properties. ,Mole concentration/ traps /polarization charges etc are used by models to calculate 2DEG at heterointerface.
See the results of example 15.3 in tonyplot. Take a vertical cutline at center of structure. In this cutline, plot electron concentration, you will get a graph of 2DEG vs. thickness. Integrating this value over a small thickness will give you 2DEG in cm-2.