Probably make case15_counter and matrix_size global