It is a positive mitzvah from the Torah to count the Omer. The Omer is counted from the second night of Pesach which is when the Omer was sacrificed until the holiday of Shavuot which is when they would bring the first wheat offering. (The Omer was the first barley offering of the year.) Some say that, nowadays, because we no longer have the Omer sacrifice, it is no longer a Torah obligation, but, rather a Rabbinic one, established so that we not forget about this mitzvah. This argument has several Halachic ramifications.
The main halacha is that it is only Rabbinic law but it is better to be strict and consider it a Torah law.
One should say the bracha and count the Omer while standing. The obligation to stand is a Rabbinic law, but is based on a verse in the Torah where it says that “in the standing one should count.” The simple meaning of the verse is that it is referring to standing grain. But the rabbis interpreted it to mean that one should count while standing.
The bracha should be recited while standing for two reasons. Firstly, since the counting should be done while standing, we wish to minimize the interruption as much as possible. Secondly, some say, that brachot on mitzvot, should, in general, be recited while standing. In practice we follow this opinion. Which is why the congregation should stand for the brachot on the Megillah even though they may sit for the reading of the Megillah itself. If, however, a particular mitzvah is supposed to be done while sitting (like eating matzah), then we also make the bracha while sitting in order to minimize the time in between the bracha and the mitzvah.
Women are not obligated to count the Omer since it is a time-related positive mitzvah. In some communities, women have accepted this mitzvah upon themselves. Sefardic women may not count with a bracha. Some say that it is better for Ashkenazic women to also count without a bracha lest they forget and not count every night. The common custom is for Ashkenazic women to count with a bracha, but they should do their best not to forget and to count every night (or day, if they miss it at night.) It is proper for their husbands to remind them to count.
Children who are somewhat older should be educated to count the Omer. If a child will become bar mitzvah in the middle of the counting of the Omer, there are opinions that, after their bar mitzvah they may not count with a bracha. The reason for this is that, when they become bar mitzvah, their obligation to count becomes a Torah-level obligation. Even according to the opinion that counting the Omer nowadays is a Rabbinic mitzvah only, still his level of obligation rises to that of an adult. (A child’s obligation to fulfill a Rabbinic mitzvah is only for educational purposes, whereas an adult has a primary obligation.) So, the counting that he did as a child perhaps does not count towards his present obligation as an adult. Sefardim follow this opinion. Most Ashkenazim however, follow the opinion that, even after Bar Mitzvah, the boy may continue to count with a bracha. As his counting as a child is considered good enough so that it not be considered as if he missed those days completely.
Before making the bracha on the Omer, one should already know what day of the Omer it is. If one made the bracha without knowing the day and then immediately found out the day and counted correctly, he need not repeat the bracha.
If one said the bracha, and then counted the wrong day, if he corrects himself within 2 seconds, he need not repeat the bracha. If he only realizes his mistake after 2 or 3 seconds, he must count again with a bracha.
There is an argument if one must count every day in order to fulfill the mitzvah of Sefirat Ha’Omer or if each day is considered a separate mitzvah. Based on these two opinions, if one missed counting a complete night and day, one may not continue to count with a bracha. Reciting a bracha might be considered a bracha in vain since, according to one opinion, it is no longer a mitzvah. On the other hand, one must continue to count (albeit it without a bracha) since, according to the other opinion, each day is a separate mitzvah.
One who forgot to count Sefirah at night should count during the next day without a brachah. One may then continue counting every subsequent night with a brachah.
If one is unsure as to whether or not he missed a day, then one may continue to count with a bracha as this is a situation of a double doubt.
If one is asked which night of the Sefirah it is, he should answer, “Last night was...” as once one says the number of the actual night, he may not be able to recite the blessing on the count of that night.
One who prays at a minyan that prays Ma’ariv before the stars come out should repeat the counting at night. A shul that has such a minyan should count after morning prayers in case anybody forgot to count again at night.
During the days of the counting of the Omer, it is customary for both men and women to refrain from work from the setting of the sun (shki’ah) until one counts the Omer.
One should try to avoid crossing the International Date Line during the days of the counting of the Omer as the counting of the other side of the dateline will differ from his own.
One who did cross the dateline should discuss the particulars of his case with a competent Halachic authority.
The Lubavitcher Rebbe ruled that in such a case, one should continue counting their personal Sefirah even if this differs from the count of the community in which he finds himself.
Based on this differing count, one may need to celebrate Shavuot on a different day than the community in which he finds himself. On the Yom Tov days in the local community, one may certainly not do any work, even in private.
As this is a very unusual situation, it is best to avoid it as explained above.