I wrote a NodeJS script that shows the latest account created on Steemit. I think the ID number of the latest account shows the number of accounts created so far (I may be wrong though). Anyway, this script runs under NodeJS, so you have to have node on your system.
First, install the steem package:
npm install steem
Then save the following script in a file named file.js:
const steem = require("steem");
steem.config.set("websocket", "wss://steemd.privex.io");
Promise.resolve("steem")
.then(steem_account_name => new Promise((resolve, reject) => {
steem.api.getAccountHistory(steem_account_name, -1, 10, function (err, result) {
if (err) {
reject(err);
} else {
for (let i = result.length; --i >= 0; ) {
let item = result[i];
if (item[1].op[0] === "account_create_with_delegation") {
resolve(item[1].op[1].new_account_name);
break;
}
}
}
});
}))
.then(latest_account_name => new Promise((resolve, reject) => {
steem.api.getAccounts([latest_account_name], function (err, result) {
if (err) {
reject(err);
} else {
resolve([latest_account_name, result[0].id]);
}
});
}))
.then(data => console.log(data))
.then(() => process.exit(0));
Since this script was just a quick program, it contains a few assumptions. For example, it assumes that the account was created by the account steem and it was created with delegation (that's true for all accounts created by the Steemit website). Also, we assume that the account creation transaction is in the last 10 transactions of the account history. If not, you can increase the limit.
Now, run the file with the following command:
node file.js
Here is the output I got a moment ago:
[ 'andymoonpie', 430585 ]
I guess this means that we have currently about 430,585 accounts on Steemit.