Gphoto2 shutter count with Canon cameras

Is Gphoto talking directly to the camera or is it looking at some metadata in the images? If the later I can send you pictures from a 450D and a 70D.