לעומר או בעומר?
(ט) בענין הנוסחא "בעומר" או "לעומר" – אין הכרע. ויותר נראה "לעומר", וכן אנו אומרים...
...with regard to the question of whether we use the formulation "בעומר" or "לעומר", there is no definitive decision. My preference is for "לעומר", and indeed this is our tradition...
Rav Soloveitchik suggests that the expression "בעומר" implies that the count is a Torah obligation, as per the Rambam, while the expression "לעומר" implies that it is not. His recommendation was to use both expressions in the count. For more details, see this link.
COUNTING USING AN ABBREVIATION
(ט) ...ואם מנה בראשי תיבות, כגון ז' לעומר, או ח', או י"א, וכיוצא בזה – יש דעות אם יצא אם לאו. ונראה דיצא, דלא גרע מלשון לעז. ולכל היותר יספור פעם אחרת בלא ברכה...
...if a person counted using an abbreviation; for example, they used the formula היום ג’ ימים בעומר, there is a difference of opinion as to whether they fulfilled their obligation. It seems to me that this is no worse than counting in a language other than Hebrew. At the most they should count again without a blessing...

COUNTING BY WRITING
(ט) ...ומי שכתב במכתב "היום כך וכך לעומר" ...
...אם לא כיון לצאת – נראה דאפילו למאן דסבירא ליה מצות אינן צריכות כוונה דלא יצא; כיון שלא עשה המצוה כתיקונה – הוי כנתכוין שלא לצאת.
...ואפילו כיון לצאת – נראה דלא יצא. דאפילו אי כתיבה כדיבור דמי – זהו כשהכתיבה הוא לגלות על מחשבת לבו, ולא במקום שהדיבור הוא המצוה, מידי דהוה אכותב קריאת שמע ותפילה, דוודאי לא יצא; או כותב ברכת המזון.(עיין שערי תשובה סעיף קטן ז שכתב סברא זו. ועיין בתשובת הגאון רבי עקיבא איגר).
...and as to the question of someone who wrote out the count in words, have they fulfilled their obligation? We can answer this question by looking at whether or not they had intention to fulfil.
(a) If they did not have intention, then one could argue that even from the perspective that one does not need intention to fulfil a mitzvah, their count does not count, the reason being that they did not perform the mitzvah in the correct way so this is as if they had explicit intention not to fulfil the obligation.
(b) Even if they did have intention, it would appear that they did not fulfil the mitzvah. There is a principle that כתיבה כדיבור דמי, by writing something it is as if you said it, but that only applies when you are writing in order to express a thought or emotion, but this principle does not apply to the performance of a mitzvah. An analogy can be made to someone who writes out the text of the Shema or the Amidah. Certainly such a person has not fulfilled their obligation to pray. Likewise someone who writes out the text of ברכת המזון.
