This question already has an answer here:
I'd like a replacement rule that replaces derivatives with their total order. I tried
ReplaceAll[Derivative[x__] -> Plus[x]][Derivative[1, 1]]
but it doesn't return 2, but
How could I get the sum of the sequence to work inside the rule?