Someone told me this prayer has exactly 36 words. Is that true?
The law books trace the idea to the Maharshal (Rabbi Shlomo Luria, Poland, 1500s). The Mishnah Berurah repeats it: the paragraph has 36 words, one for each light of the eight nights, not counting the first two words, "HaNerot halalu." It is as if it opens by saying "these lights are 36." Thirty-six is 1 + 2 + 3, and so on up to 8, so the shamash (the helper light) is not counted.
Now count. Your siddur has 50 words, so 48 come after the first two. The Pri Megadim (an 18th-century commentary on the Shulchan Aruch, the main code of Jewish law) saw the problem. He writes that the older text comes to 38 or 39 words after the first two. The Aruch HaShulchan (a law code from around 1900) says he cannot make the count work.
The Eliyah Rabbah (a commentary on the Shulchan Aruch from around 1700) offers one way out. He reports the Maharshal's count as 36 words not counting the first four: "HaNerot halalu anu madlikin." Abudarham's wording has 40 words in all (we counted), so it fits: 4 plus 36. The Tur has one more, a small word after "kodesh." The Machatzit HaShekel (a commentary from around 1800) gets there another way: he also leaves out the second "HaNerot halalu."
Your siddur has ten more words than Abudarham: mitzvat, the little word after "kodesh," "and for the wars" (two words), "in those days, at this season" (four words), and "and praise" and "great" in the last line. The Eliyah Rabbah calls the first two a scribe's mistake.
So the 36 fits the older wording, not your siddur's. The sources disagree on how much that matters. The Maharshal said not to change, add or subtract a word. The Eliyah Rabbah says the law books aimed at 36, "and so is the law." The Ben Ish Chai (Rabbi Yosef Chaim of Baghdad, 1800s) says to use the corrected version with 36 words. The Aruch HaShulchan says that if you skip this paragraph, the mitzvah of lighting is not held up, and that the Rambam never mentions it.
Mishnah Berurah 676:8,Pri Megadim, Eshel Avraham 676:3,Aruch HaShulchan, Orach Chaim 676:8,Eliyah Rabbah on Shulchan Aruch, Orach Chaim 676:8,Machatzit HaShekel, Orach Chaim 676:3,Ben Ish Chai, Year 1, Laws of Chanukah 1The prayer says these lights are holy. They are just candles, so how?
The prayer says it outright: "These lights are holy, and we have no permission to use them, except to look at them only." The Gemara (the record of rabbinic discussion, about 1,500 years old) is more careful with the word. Rav, one of its teachers, ruled that you may not count money by the light of a Chanukah light. Rashi (the classic commentator, France, died 1105) says the word used means "to count." When this reached another teacher, Shmuel, he asked: "Does a Chanukah light have holiness?"
Rav Yosef, a third teacher, pushes back with an example. The Torah says to cover the blood of a wild animal or bird after slaughter, and the Gemara says you cover it with your hand, not your foot, "so that mitzvot are not treated with contempt." Blood is not holy, yet it still gets respect.
One explanation is the Ramban's (Nachmanides, Spain, 1200s). Even though these things are thrown out after the mitzvah, while it is happening they are treated with a kind of holiness, so that mitzvot are not treated with contempt.
That is why the rule is strict. The Rambam (Maimonides, who died in 1204) says you may not use the light even to check coins. The Shulchan Aruch adds that even studying Torah by it is forbidden, though it records one opinion that allows a holy use.
Shabbat 22a,Rashi on Shabbat 22a,Ramban on Shabbat 22a,Rambam, Laws of Megillah and Chanukah 4:6,Shulchan Aruch, Orach Chaim 673:1If I can't use the lights, why light them at all?
The prayer answers in its last line. The lights are for looking at, "in order to give thanks and praise to Your great name for Your miracles, Your wonders, and Your rescue." They are not there to give light. They are there to be seen.
The Gemara fits that. It says to put the Chanukah light outside the door of your house. Rashi explains why: to make the miracle known. If you live upstairs, put it in the window next to the street. In a time of danger, it says, put it on your table, and that is enough.
The Rambam states the purpose in his own words. Be careful with this mitzvah, he says, "to publicize the miracle and to add praise and thanks to God." He calls it an especially dear mitzvah.
He also ranks it. If you can afford only one thing, buy oil for the Chanukah light before wine for Kiddush (the blessing over wine on Shabbat). Both are rabbinic mitzvot, he says, and the light carries the memory of the miracle.
Peninei Halakhah says the paragraph explains what the mitzvah is for, which is why it fits while you are still lighting. The Rambam and the paragraph's last line share thanks and praise. The Rambam adds making the miracle known, and the Aruch HaShulchan ties this paragraph to that same reason.
HaNerot Halalu, last line,Shabbat 21b,Rashi on Shabbat 21b,Rambam, Laws of Megillah and Chanukah 4:12-13,Peninei Halakhah, Zemanim 12:5,Aruch HaShulchan, Orach Chaim 676:8