More work for element counting: use number class