title: I can't count how many times same chars used in file
body: <p>I have some text to check for the same chars. When I check:
  puts file.count("AB"). The result: 399 but it should be 3</p>
  
  <pre><code>alphabet = ["A","B","C","D","E","F","G","H","I","J",
    "K","L","M","N","O","P","Q","R","S","T",
    "U","V","W","X","Y","Z"," ",".",",",";",
    "-","'"
  ]
  
  file = File.read("vt_00.txt")
  i = 0
  
  
  while i &lt; alphabet.count do
    single_char_count = file.count(alphabet[i])
    puts "#{alphabet[i]} = #{single_char_count}"
    j = 0
    while j &lt; alphabet.count do
      two_chars = alphabet[i] + alphabet[j]  
      two_chars_count = file.count(two_chars)
      puts "#{two_chars} = #{two_chars_count}"
      j += 1
    end
    i += 1
  end
  </code></pre>
  
  <p>When I check:
  puts file.count("AB"). The result: 399 but it should be 3</p>