.count method not supported in older ruby versions

I changed the .count method used in file-line/ruby.rb to .size in order to support older ruby versions.

Notably Scientific Linux 5.X only sports a 1.8.5 ruby version, where .count does not exist.