### Question:
LogRepositoryReadJdbc implements LogRepositoryRead { @Override public int countStatements() { try { try (PreparedStatement statement = connectionRead.prepareStatement("select count(1) from statement_log")) { try (ResultSet resultSet = statement.executeQuery()) { resultSet.next(); return resultSet.getInt(1); } } } catch (final SQLException e) { throw new RuntimeException(e); } } LogRepositoryReadJdbc(final String dbName); @Override void dispose(); @Override void getStatements(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer,
            final boolean withFilledSql); @Override void getStatementsGroupByRawSQL(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer); @Override void getStatementsGroupByFilledSQL(final LogSearchCriteria searchCriteria,
            final ResultSetAnalyzer analyzer); @Nullable @Override DetailedViewStatementLog getStatementLog(final long id); @Override int countStatements(); @Override long getTotalExecAndFetchTimeNanos(); @Override long getTotalExecAndFetchTimeNanos(final LogSearchCriteria searchCriteria); @Override void getBatchStatementExecutions(final UUID logId, final ResultSetAnalyzer analyzer);  }### Answer:
@Test public void testcountStatements() { insert1Log(); assertEquals(1, repositoryRead.countStatements()); }