On Google Sheet, I currently have a cell that looks like this as a "raw" table:

RAW:

```
Week Starting   Date    Apple type
12/31/2017  1/4/2018    Green
12/31/2017  1/5/2018    Green
1/7/2018    1/8/2018    Bad - Green
1/7/2018    1/8/2018    Bad - Green
1/7/2018    1/8/2018    Yellow
1/7/2018    1/9/2018    Green
1/7/2018    1/9/2018    Red
1/7/2018    1/9/2018    Red
1/7/2018    1/10/2018   Green
1/7/2018    1/10/2018   Yellow
1/7/2018    1/10/2018   Bad - Yellow
1/7/2018    1/12/2018   Yellow
1/14/2018   1/16/2018   Red
1/14/2018   1/16/2018   Yellow
1/21/2018   1/23/2018   Red
1/21/2018   1/23/2018   Bad - Red
1/21/2018   1/23/2018   Yellow

```

and I would like to write formula that returns something that looks like this:
Summary:

```
Week Starting   Count of all apples Count of only good apples
12/31/17                   2                  2
1/7/18                     10                 7
1/14/18                    2                  2
1/21/18                    3                  2

```

I've tried multiple countifs with a combination of minus, quotes, etc, but still couldn't get to this. Would someone please give me some tips around this? :/