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