Case of mālin in «كَمْ مَالٍ أَنْفَقْتَهُ!»?

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