Top "Count" questions

Count refers to the number of objects in a collection.

How to count each digit in a range of integers?

Imagine you sell those metallic digits used to number houses, locker doors, hotel rooms, etc. You need to find how …

algorithm language-agnostic count clarion
DELETE FROM HAVING COUNT(*) in MySQL

Ok so there are couple posts here already on this and fewer still out on the web. I've literally tried …

mysql count sql-delete having
How to run array_filter recursively in a PHP array?

Given the following array $mm Array ( [147] => Array ( [pts_m] => [pts_mreg] => 1 [pts_cg] => 1 ) [158] => Array ( [pts_…

php recursion count array-filter
How do I speed up counting rows in a PostgreSQL table?

We need to count the number of rows in a PostgreSQL table. In our case, no conditions need to be …

sql postgresql count postgresql-performance
How to do natural sort output of "uniq -c" in descending/acsending order? - unix

How to do natural sort on uniq -c output? When the counts are <10, the uniq -c | sort output looks …

sorting unix count uniq natural-sort
Pivot Tables or Group By for Pandas?

I have a hopefully straightforward question that has been giving me a lot of difficulty for the last 3 hours. It …

python pandas count group-by pivot-table
Laravel 5.3 Pagination Total number of pages

I have a Paginator instance $paginator in Laravel App, I want to display 'Last' in pagination, so I need a …

php laravel count pagination paginator
pyspark: count distinct over a window

I just tried doing a countDistinct over a window and got this error: AnalysisException: u'Distinct window functions are not supported: …

count pyspark window-functions distinct-values
SqlAlchemy: count of distinct over multiple columns

I can't do: >>> session.query( func.count(distinct(Hit.ip_address, Hit.user_agent)).first() TypeError: distinct() …

postgresql count sqlalchemy distinct aggregate-functions
How to get NSMutableDictionary count in iphone?

I want to get NSMutableDictionary count in iphone. I want to know how many items are in NSMutableDictionry. I tried …

iphone ios count nsmutabledictionary