I have a list of period of dates and wish to have a day count of each month consolidated for all the periods.

e.g.
Column 1:
8 Jan
9 Feb
16 Mar
19 Mar

Column 2:
19 Apr
18 Mar
20 Jul
30 Aug
*HOWEVER, this date is not account as a value
(e.g. for the first period of 8 Jan to 19 Apr, 18 Apr is counted, but 19 Apr is not counted as a day)

This is the result I seek:
Jan = A number of days accumulated in all above 4 periods of dates
Feb = B number of days
Mar = C number of days
Apr = D
May = E
Jun = F
Jul = G
etc.

Thank you very much.

kyc