Update formatter.rb

add result and resource's count