print lines that appear at least N times