t sql count months between two dates