Program in C which reads set of log files, matches each lines against a set of regexp, and counts matching lines