5000 pages sounds really long, but 5000 words sounds way too short.
I think it actually is pages.
Smaller stimulus checks, targeted aid for small businesses, and funding to buy and distribute vaccines are among the main components of the latest pandemic relief package.
www.nytimes.com
It's pages, although the pages are not exactly 12 point single-spaced novel-format. Perhaps on account of the poor eyesight of some members of Congress? Or so that many people can look at the same page at once? I don't know.
Spending bills are lists of concrete, independent things, not a program for approaching an issue which needs to be generally comprehensible to lawyers and judges and accountants (and possibly even people who want to follow the law), so I don't think it's weird that they'd be longer.