[OHAI-279] Add cpu counts for darwin

This is a replacement for pull #98 and should take into account the discussions on the ticket.