class PipelineRunDao extends NamedParameterJdbcDaoSupport {

    public int countFilteredPipelineRuns(PipelineRunFilterVO filter, PipelineRunFilterVO.ProjectFilter projectFilter) {
        MapSqlParameterSource params = new MapSqlParameterSource();
        String query = wherePattern.matcher(countFilteredPipelineRunsBaseQuery).replaceFirst(makeFilterCondition(filter,
                projectFilter, params, true));
        return getNamedParameterJdbcTemplate().queryForObject(query, params, Integer.class);
    }

}