A server decorator that counts the number of database calls and reports them via a logger.
PHP version 5