What is the function of kam in kam kitāban qaraʾta?

The indeclinable noun: definition, rule and eight classes