Check token holders

Hello,
Is it possible to check how many token holders (wallets) there are in the ERC20 smart contract?

Thanks

I don't know in smart contract but if you deploy a subgraph then it is possible.

Do you have any material to study? Thanks

It's not possible by default on an ERC20 but you can add the logic to keep track of the number of token holders on chain. If you don't need it on chain, using an off chain solution like The Graph is better. For build subgraphs we provide tooling in https://github.com/OpenZeppelin/openzeppelin-subgraphs/.