moved `counts` implicit method to scala-util