@OnlyUsedByTests public long count() { try { return dataSource.queryForLong("select count(*) from snapshot"); } catch (SQLException e) { logger.error(e.getMessage(), e); return 0; } }