adds match_num method, a super hacky way that still prints out EVERY line