Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Count

Usage
Notes
Further Examples

This counts the number of occurrences of positive numbers in a list.

In[1]:=  

Out[1]=

This counts the number of occurrences of Real numbers in the list. (An Integer is not considered to be Real, any more than a Real is considered to be Complex.)

In[2]:=  

Out[2]=

This command returns the number of summands that are powers. (Note that the first argument to Count need not be a list.)

In[3]:=  

Out[3]=

This returns the number of expressions that occur in the sum at any level and are powers. This count is higher; the actual matches can be seen by replacing Count with Cases.

In[4]:=  

Out[4]=

In[5]:=  

Out[5]=

Here is a list of  's and  's.

In[6]:=  

This counts the number of occurrences of a  in ww immediately followed by a  .

In[7]:=  

Out[7]=

In[8]:=  


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: