how to count months observations based on every person?

Please be aware that a REPRoducible EXample (reprex) is much more useful than a textual description of your problem and it is also a polite thing to do when asking people to help you with coding questions.