You asked

How do I check the shutter count on a used panasonic lumix g7 before I buy it?

Here is what the site says about that.

From Panasonic Lumix G7: Panasonic Lumix G7: A mirrorless camera by Panasonic with a 16-megapixel Micro Four Thirds sensor, announced in 2015. An old 4K body with a viewfinder but no stabilisation, very cheap used. Specs - Maker: Panasonic - Mount: Micro Four Thirds - Sensor: Micro Four Thirds, 17.3 x 13mm, crop factor 2.0 - Resolution: 16 megapixels - Stabilisation: none in the body; use stabilised lenses for slow shutter speeds - Announced: 2015 - Type: ...

From Buying used: Checking a camera body: - Shutter count. Shutters wear out eventually. Ask for the count, or read it from a test photo's metadata with an online tool where the brand supports it, and compare with the rated life for that model. - The sensor. Take a photo of a plain sky at f/16 and look for dark spots (dust is fixable; scratches are not). - Ports, buttons and dials. Try every button, the card ...

Quoted from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.