Number of leaf nodes, non recursive