Get the number of days of a year depending on being leap or not. Normal, non leap years contain 365 days, while leap ones 366.