Top "Count" questions

Count refers to the number of objects in a collection.

Count number of occurrences of a pattern in a file (even on same line)

When searching for number of occurrences of a string in a file, I generally use: grep pattern file | wc -l …

search count grep match
How can I tell how many objects I've stored in an S3 bucket?

Unless I'm missing something, it seems that none of the APIs I've looked at will tell you how many objects …

file count amazon-s3 amazon-web-services
SQL count rows in a table

I need to send a SQL query to a database that tells me how many rows there are in a …

sql-server count rows database-table
How to count check-boxes using jQuery?

I have tons of checkboxes that are either checked (checked="checked") or unchecked. I would like to get the number …

jquery checkbox count checked
SQLite Query in Android to count rows

I'm trying to create a simple Login form, where I compare the login id and password entered at the login …

android sqlite count
Search for string and get count in vi editor

I want to search for a string and find the number of occurrences in a file using the vi editor.

search count vi
count distinct values in spreadsheet

I have a Google spreadsheet with a column that looks like this: City ---- London Paris London Berlin Rome Paris …

count google-sheets distinct
count (non-blank) lines-of-code in bash

In Bash, how do I count the number of non-blank lines of code in a project?

bash unix count lines nonblank
Count number of rows by group using dplyr

I am using the mtcars dataset. I want to find the number of records for a particular combination of data. …

r dplyr count plyr
How do you access the value of an SQL count () query in a Java program

I want to get to the value I am finding using the COUNT command of SQL. Normally I enter the …

java sql jdbc count