The maximal number of quotient singularities on surfaces with given numerical invariants