Wanderlog interview question

Sort these items by count