Made count_lines script fit the new mosaic code
Added -O2 to driver