Top "Count" questions

Count refers to the number of objects in a collection.

Count how many records are in a CSV Python?

I'm using python (Django Framework) to read a CSV file. I pull just 2 lines out of this CSV as you …

python csv count
Count with IF condition in MySQL query

I have two tables, one is for news and the other one is for comments and I want to get …

mysql join if-statement count
Get number of digits with JavaScript

As the title of my post suggests, I would like to know how many digits var number has. For example: …

javascript count digits
Getting a count of rows in a datatable that meet certain criteria

I have a datatable, dtFoo, and would like to get a count of the rows that meet a certain criteria. …

c# datatable count criteria
Faster alternative in Oracle to SELECT COUNT(*) FROM sometable

I've notice that in Oracle, the query SELECT COUNT(*) FROM sometable; is very slow for large tables. It seems like …

oracle count
postgresql COUNT(DISTINCT ...) very slow

I have a very simple SQL query: SELECT COUNT(DISTINCT x) FROM table; My table has about 1.5 million rows. This …

performance postgresql count distinct
How can I count the number of elements of a given value in a matrix?

Does anyone know how to count the number of times a value appears in a matrix? For example, if I …

matlab count matrix
Javascript counting number of objects in object

I have an object something like: Object {0=Object, 1=Object, 2=Object} // Output from console.log(obj.Data); But there is no …

javascript object count
Count how many files in directory PHP

I'm working on a slightly new project. I wanted to know how many files are in a certain directory. <…

php file count directory
C++ - how to find the length of an integer

I'm trying to find a way to find the length of an integer (number of digits) and then place it …

c++ count numbers integer digits