Top "Count" questions

Count refers to the number of objects in a collection.

PHP - count specific array values

How can I count the number of element inside an array with value equals a constant? example, $myArray = array("Kyle","…

php arrays count
Item frequency count in Python

Assume I have a list of words, and I want to find the number of times each word appears in …

python count frequency counting
SQL to Entity Framework Count Group-By

I need to translate this SQL statement to a Linq-Entity query... SELECT name, count(name) FROM people GROUP by name

sql entity-framework linq-to-entities count group-by
(How) can I count the items in an enum?

This question came to my mind, when I had something like enum Folders {FA, FB, FC}; and wanted to create …

c++ count enumeration
COUNT(*) vs. COUNT(1) vs. COUNT(pk): which is better?

I often find these three variants: SELECT COUNT(*) FROM Foo; SELECT COUNT(1) FROM Foo; SELECT COUNT(PrimaryKey) FROM Foo; As …

sql select count
Most efficient way to get table row count

I currently have a database with over 6 million rows and growing. I currently do SELECT COUNT(id) FROM table; in …

mysql sql count
Group by & count function in sqlalchemy

I want a "group by and count" command in sqlalchemy. How can I do this?

python group-by count sqlalchemy
XSLT counting elements with a given value

I need to count the number of elements in an XML file that have a particular value (to verify uniqueness). …

xslt count elements
How do I count occurrence of duplicate items in array

I would like to count the occurrence of each duplicate item in an array and end up with an array …

php arrays count
Count the number of times a string appears within a string

I simply have a string that looks something like this: "7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,…

c# string count