I have text file with a list of dates
2014-01-18
2014-01-18
2014-01-20
2014-01-20
2014-01-20
2014-01-21
2014-01-21
2014-01-22
2014-01-22
2014-01-22
2014-01-22
2014-01-22
How can I count how many times each date is recorded? So have an output something similar to:
2014-01-18 2
2014-01-19 0
2014-01-20 3
2014-01-21 2
2014-01-22 5