Add Array#counts

Change Array#duplicates to leverage #counts

@brandondunne / @jrafanie Please review.  This came out of discussion in https://github.com/ManageIQ/cfme/pull/1576#discussion_r8939083 and I realized we sort of already do this in the Array#duplicates method.  I'm also not sure on the method name itself.  Thoughts?