dded count method to database interface
Updated for new interface definition
Further work on plaster.