Fix #159

Dividers and hidden options are no longer included in the count