I have a pandas dataframe with several columns and I would like to know the number of columns above the date 2016-12-31 . Here is an example:
| ID | Bill | Date 1 | Date 2 | Date 3 | Date 4 | Bill 2 |
|---|---|---|---|---|---|---|
| 4 | 6 | 2000-10-04 | 2000-11-05 | 1999-12-05 | 2001-05-04 | 8 |
| 6 | 8 | 2016-05-03 | 2017-08-09 | 2018-07-14 | 2015-09-12 | 17 |
| 12 | 14 | 2016-11-16 | 2017-05-04 | 2017-07-04 | 2018-07-04 | 35 |
And I would like to get this column
| Count |
|---|
| 0 |
| 2 |
| 3 |