count ifs and whiles per subroutine
handling warnings about unused variables