No disagreement here! There is certainly a skill in getting papers accepted. And having a lot of papers doesn't mean it's bad work. But it's easy to get fixated on numbers and writing papers just because one can. It may lead to a PhD with nothing interesting in hindsight.