Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
According to Wikipedia:
the reward given for finding a block is 999*(difficulty**2). So does that mean that you need historic data on the difficulty in order to calculate how many coins there are?
Yes, unlike Bitcoin you can't deduce the total number of coins in circulation from the current block height, you need historic difficulty data. Of course, there should be services that have already computed this and present it publicly.
Required, but never shown