improve conditional logic; rename count to total
updated per lib
with ruby-prof
add travis task, including ruby-prof; make travis use it