added running in 'every-size' terminal (now you can run even 100x24) and rewrite the counting_lines function