write a function in rust to convert months into month number.