remove extraneous parens
refactor as function instead of loop
add count_gerrit_query
support either matrixBuild or freeStyleBuild