Don't hardcode total pets count

I saw this problem in https://github.com/lefnire/habitrpg/issues/1445#issuecomment-24142125.