How nifty pe calculated?

Hy traders,

P/E ratio = price per share / earnings per share (EPS) and EPS = earnings/total shares outstanding
?
how nifty PE ratio and eps calculated ?what is the Earnings and total number of shares outstanding nifty.we can’t hold nifty like equity then how we calculate total shares outstanding

Please help

Check this link, it has been explained in detail.