introduce getNBaseNodes() to Element

As mentioned in #477, I suggest to delete an argument of `getNNodes()` and let it return the number of all nodes. Additionally, `getNBaseNodes()` is introduced for linear or base nodes.