Enter 12.
You don't double count the months you both fit that requirement.
According to the IRS:
"Both spouses were students or disabled. If, in the same
month, both you and your spouse were either students or
disabled, only one of you can be treated as having earned
income in that month under these rules."
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"