Q. Someone was teaching in shul after the shkia before maariv about Lag Baomer on the eve of that day. He mentioned many times the name Lag Baomer without any intention to be or not to be yotze. Can he still count after maariv with a brocho?
A. Horav Shlomo Miller’s Shlit’a opinion is that one in the above situation, although in principle he can recite the brocho, it is better if he would ask someone else to recite the brocho that night and have him in mind.

Rabbi A. Bartfeld as revised by Horav Shlomo Miller Shlit’a