كَمْ: interrogative noun, indeclinable on sukūn, in the nominative position as mubtadaʾ; rajulan is its tamyīz.
رَجُلًا: singular accusative tamyīz of kam.
عِنْدَكَ: a locative expression attached to an understood predicate; ʿinda is muḍāf and ka is its genitive pronoun.
The question requests a number of men; ʿindaka specifies their location.
Remember that the nominative position of kam and the accusative ending of rajulan are separate facts.