Yes, in the STEM fields, for published papers, it's easy just to count them; much harder to read them; to evaluate them, some people just count awards, etc. So, the hard work that makes the good material in the paper may never be noticed.
There is, "You get what you pay for." So, want papers, you will get papers, and you can count them. It goes, did Haydn write 101 symphonies or 1 symphony 101 times?
Early on, had a good career going in computing but where occasionally some math made a lot of difference. So, to help that career got a Ph.D. in applied math. Never had any intention of being a professor but for a while did to try to help my seriously, fatally, stressed out wife (Valedictorian, PBK, Woodrow Wilson, NSF, Summa Cum Laude, Ph.D.) -- took a professor job near her family home and farm.
In my little Ph.D department, saw the Chair and four professors get fired and one more leave, fired or not. The career I had before grad school was a lot better than the one those professors had.
Had to conclude that, tenure or not, being a professor is, on average, a poor way to even reasonable financial security. Generally there is low pay, e.g., too little to buy a house, keep cars running, support a wife and family. There's a LOT of dirty politics, infighting, higher-ups who don't want you to be successful.
Bluntly, a research university takes in money that a lot of people care about and puts out papers that only a few people care about: Net, there is no very strong reason to pay professors enough for even reasonable financial security. Key sources of the money are short term grants from the usual suspects, NSF, DOE, DARPA, NIH ("too many for them all to be turned off at once" -- JB Conant?), but that is essentially just contract work and not steady employment, with little promise that when a Professor's baby is ready for college there will be money enough for them to go. It's a house built on paper that can be blown away by any thunder storm.
Now, for a career, e.g., financial security, to leave something for the kids in the family tree, regard business, e.g., now involving the Internet, as the best approach, and there regard computing and math as important tools but only tools. Research? Did some, and it is a key to the business. Academic research? Did some, published, on my own dime, still waiting for the checks.
History, how'd we get here? Used to be that some guy built a valuable business and had several sons. One of the sons inherited the business, and the rest went to the military as an officer, academics as a professor, or to politics. Then WWII showed that the STEM fields can be crucial for national security, and some related funding started, e.g., summer math programs for selected high school students, research grants.
"If you are so smart, why aren't you rich?"
Ah, "The business of America is business."