pcjericks/py-gdalogr-cookbook — pull request #52 by thebigspoon (2013-06-23 17:51:11+00:00)
Title: Example Get PostGIS Layer Feature County by Layer Name

I'm guessing issue #15 was asking to show how to get a PostGIS layer by name and for a layer's feature count instead of "layer count" for all layers in the DB. Not sure if you wanted all the __main__ stuff and error checking. if you want me to change that stuff around then holler.