So I went through the discord.js guide, and found that client.guilds.size and client.users.size is for finding no of users and servers a bot is on. But
client.guilds.size
client.users.size
Try client.guilds.cache.size and client.users.cache.size. This changed in discord.js v12.
client.guilds.cache.size
client.users.cache.size
client.users has been changed from a Collection to a Manager. client.guilds has been changed from a Collection to a Manager.
client.users has been changed from a Collection to a Manager.
client.guilds has been changed from a Collection to a Manager.