Vayikra / Leviticus 15:28 · Sod
וְאִם־טָהֲרָה מִזּוֹבָהּ וְסָפְרָה לָּהּ שִׁבְעַת יָמִים וְאַחַר תִּטְהָר׃
And if she becomes clean of her discharge, she shall count for herself seven days, and after that she shall be pure.
Sod סוֹד
A count toward purity
Why after Pesach does Israel count seven weeks until Shavuot? The Zohar answers through our verse.
Zohar: in Egypt Israel was under the rule of the other side and held on to impurity, like a woman in the days of impurity. After circumcision they entered the holy covenant, and the impurity stopped, as her blood stops. And then it says: "she shall count for herself seven days". So Israel counts the days of the omer: from here on, a count toward purity, toward the Torah.
How Zohar explain it
Zohar She shall count for herself seven days
Rabbi Abba and Rabbi Chiya were walking on the road. Rabbi Chiya said: it is written "And you shall count for yourselves from the day after the Sabbath, from the day you bring the omer of waving" (Vayikra / Leviticus 23:15). What does it speak of? He said to him: the companions have already explained it. But come and see: when Israel was in Egypt, they were under another dominion and held on to impurity, like this woman when she sits in the days of her impurity. After they were circumcised, they entered the holy portion that is called covenant (בְּרִית). Once they held on to it, the impurity ceased from them, like this woman whose blood of impurity ceases. After it has ceased from her, what is written? "She shall count for herself seven days". So too here: once they entered the holy portion, the impurity ceased from them, and the Holy One, blessed is He, said: from here on, a count toward purity.
Takeaway
"You shall count for yourselves" (וּסְפַרְתֶּם לָכֶם) and "she shall count for herself" (וְסָפְרָה לָּהּ): both verses have the same verb and the same "for". The thought of the Zohar stands on this likeness.
This thought of the Zohar is also brought by Rabbi Moshe Cordovero in "Pardes Rimonim": that is why the Torah was not given right after leaving Egypt.