Create logcountwithterm.rb