Top "Count" questions

Count refers to the number of objects in a collection.

How to count inverse with for in php?

My Problem: I want to count inverse in the for loop. This is the opposite of what I want to …

php count loops inverse
Using strchr() to count occurrences of a character in a string

I'm almost finished with the class semester, and I'm working on an assignment to write a function to find the …

c string count character strchr
Cumulative count of each value

I want to create a cumulative counter of the number of times each value appears. e.g. say I have …

r count cumulative-sum
Is there an elegant way to count tag elements in a xml file using lxml in python?

I could read the content of the xml file to a string and use string operations to achieve this, but …

python xml tags count lxml
Find the most frequent value by row

My problem is as follows: I have a data set containing several factor variables, which have the same categories. I …

r count mode factors
CakePHP GROUP and COUNT items returned in list

I know there are some similar quesiton like this on here but they are all about when using Model->…

cakephp count group-by cakephp-1.3
Snowflake: "SQL compilation error:... is not a valid group by expression"

Without resorting to CTEs or a sub-query is there any way to use Window functionality with a different summary level …

sql count sum snowflake-cloud-data-platform window-functions
How do __enter__ and __exit__ work in Python decorator classes?

I'm trying to create a decorator class that counts how many times a function is called, but I'm getting an …

python class count decorator exit
Count records with a condition in XSLT

I have an xml with this structure: <emails> <record> <field name="host"><![CDATA[…

xml xslt count conditional-statements cdata
Counting elements of a Stream

I want to count the different elements of a stream and am wondering why Stream<String> stream = Stream.…

java count java-8 java-stream collectors