A Python function to count the days of a specified month in a given year.
You are asked to write a Python function that should return the number of days in a specified month for a given year. Most months have fixed number of days but February is an exception as it can have either 28 or 29 days, depending on whether the year is a leap year or not. ### Parameters - `month` (int): An integer between 1 and 12, where the number represents its sequence in a year (e.g., January is 1, February is 2, etc). - `year` (int): The year in which the analyzed month occurs. ### Return Value - The function should return an integer value representing the number of days in the specified month for the given year. ### Examples ```python # February of the year 2018 has 28 days solution(2, 2018) # should return 28 # March consistently has 31 days solution(3, 2011) # should return 31 # April consistently has 30 days solution(4, 654) # should return 30 # In leap years like 2020, February has 29 days solution(2, 2020) # should return 29 ```