Function of kam in «كَمْ يَوْمًا سَفَرُكَ؟»?

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