Rename getDof() to getNumDofs()

* Rename `getDof()` to `getNumDofs()`
* `getDof()` is still there but marked as deprecated
* #207