

CountsBy
Examples
open all close allBasic Examples (2)
Count the even and odd elements of a list:
Count the prime and composite numbers in a list:
Use the operator form of CountsBy:
Properties & Relations (2)
History
Text
Wolfram Research (2014), CountsBy, Wolfram Language function, https://reference.wolfram.com/language/ref/CountsBy.html.
CMS
Wolfram Language. 2014. "CountsBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CountsBy.html.
APA
Wolfram Language. (2014). CountsBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CountsBy.html
BibTeX
@misc{reference.wolfram_2025_countsby, author="Wolfram Research", title="{CountsBy}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CountsBy.html}", note=[Accessed: 12-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_countsby, organization={Wolfram Research}, title={CountsBy}, year={2014}, url={https://reference.wolfram.com/language/ref/CountsBy.html}, note=[Accessed: 12-August-2025]}