# How to count degree of a monomial in boolean polynomial

As stated in the title, my question is:

Is there any way to count the degree of a monomial of a boolean polynomial in Sage?

Say, for example,

```
degree(xy) = 2
degree(xyz) = 3
```