Thank you very much for this, I had the same problem!
I'm still not sure what syntax to give gdalinfo to summarize the dataset, though.
thank you!