countDays static method Null safety

int countDays(
  1. int year,
  2. int month
)

Counts days in months.