added counter to split.rb