This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

LeafCount

LeafCount[expr]
gives the total number of indivisible subexpressions in expr.
  • LeafCount gives a measure of the total "size" of an expression.
  • LeafCount counts the number of subexpressions in expr which correspond to "leaves" on the expression tree.
New in 1