How many retail demat account in nse/bse and how many are in profit or loss?

For now, the National Securities Depository Ltd (NSDL) holds over 10.21 million demat accounts. It alone handles $1.22 trillion worth of assets in these accounts. The Central Depository Services Ltd (CDSL) has nearly eight million accounts and handles over $174 billion worth of assets.

Source: google.com

CDSL crossed 10 million demat accounts a couple of months back.