'get number of accounts or number of miners via web3.py

I'm using the Web3.py library to pull Ethereum data about transactions, blocks, etc. I would like to either pull the number of Ethereum accounts or number of miners actively mining the current block, but I cannot find a way to do this with the methods / properties listed. Has anyone succeeded in doing this or have any ideas?

Link: https://web3py.readthedocs.io/en/stable/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source