As Gideon stated here, the bot looks for patterns in your source code.
Getting the number of questions is easy. You just go to yoursite.com/questions, look how many are on one page and how many pages there are. The same applies for tags/users.
For the version number I'm guessing it looks for any URLs that have the version number appended, e.g. code like this: