How can I check how many times an iPhone or iPad has been charged?
I have installed coconutbattery app for macOS. It gives this information and more for all the Apple devices that you connect (by cable, or WiFi for Pro version) on your Mac, both about battery, OS and charger.

After installing the app, connect your iPad/iPhone, launch the app, click on the iOS Device tab and look for value corresponding to Cycle Count.



Image Source: https://www.coconut-flavour.com/coconutbattery/assets/img/coconutbattery_364_ios_highsierra-compressor.png