Top "Count" questions

Count refers to the number of objects in a collection.

MySQL - How to count all rows per table in one query

Is there a way to query the DB to find out how many rows there are in all the tables? …

sql mysql count
PHP 7.2 - Warning: count(): Parameter must be an array or an object that implements Countable

I just upgraded my PHP installation from version 5.6 to 7.2. I used the count() function on my login page like so: …

php session post count php-7.2
SPARQL query and distinct count

I have the following query: SELECT ?tag WHERE { ?r ns9:taggedWithTag ?tagresource. ?tagresource ns9:name ?tag } LIMIT 5000 and the results …

count sparql
How to get row count for jqGrid?

I would like to know how to get row count for jqGrid. I'm using rowNum: -1 so it displays all …

javascript jquery jqgrid count row
How to add a notification badge/count to application icon on Sony Xperia devices?

With Sony's Xperia Home, certain apps have the ability to display a count bubble or badge on the app icon. …

android count notifications badge sony
How to count differences between two files on linux?

I need to work with large files and must find differences between two. And I don't need the different bits, …

shell count diff
Group and count in Rails

I know I've seen this before but I can't find anything now. I want to group a query by a …

ruby-on-rails count
How do I get the count of a Swift enum?

How can I determine the number of cases in a Swift enum? (I would like to avoid manually enumerating through …

swift enums count
Spark: How to translate count(distinct(value)) in Dataframe API's

I'm trying to compare different ways to aggregate my data. This is my input data with 2 elements (page,visitor): (PAG1,…

count apache-spark distinct dataframe apache-spark-sql
How to count identical string elements in a Ruby array

I have the following Array = ["Jason", "Jason", "Teresa", "Judah", "Michelle", "Judah", "Judah", "Allison"] How do I produce a count for …

ruby arrays count element