I wanted to calculate the number of trading days between 2 given days. There is a discussion in https://stackoverflow.com/questions/62292979/using-quantlib-in-python-how-do-i-get-the-number-of-days-between-two-dates.
However this considers the day-count convention from the Bond coupon's calculation perspective using something
However I wonder why we dont consider a calendar for such calculation? Is there any way to consider the holiday information as well in the day-count calculation?