What function does kam have in «كَمْ ضَرْبَةً ضَرَبْتَ؟»?

Al-Kināyāt — Kam, its Tamyīz and Syntactic Positions