From Latin quantus, possibly conflated with quotus. Compare Daco-Romanian cât.
cãt
cãt (feminine cãtã, masculine plural cãtsi)