title: How to group by columns?
body: <p>I am having trouble figuring out how to group rows by columns. My goal is to count the number of 'Package Codes' where column values are orange and blue. </p>
  
  <p>I am working with thousands of rows of data. This is a subset of the data:</p>
  
  <pre><code>Country   Package Code   Color    Type
  US        100            Orange    a
  US        100            Orange    b
  US        100            Orange    c
  Mexico    200            Green     d
  US        300            Blue      e
  Canada    400            Red       f
  Germany   500            Red       g
  Germany   600            Blue      h
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>Country   Packages
  US         2
  Mexico     0
  Canada     0
  Germany    1
  </code></pre>