COUNT

COUNT is the “how many?” shortcut. Count how many times a song was played, how many shows in a range, or how many shows match a condition — without listing them all.


Synopsis

COUNT "Song Name" [ FROM date_or_range ];
COUNT SHOWS [ FROM date_or_range ] [ WHERE condition ... ];

Forms

FormWhat it counts
COUNT "Dark Star"Total performances of this song
COUNT "Dark Star" FROM 1972-1974Performances in a date range
COUNT "Dark Star" AFTER 1977Performances after a year
COUNT "Dark Star" FROM BRENT_ERAPerformances in an era
COUNT SHOWSTotal shows in the database
COUNT SHOWS FROM 1977Shows in a year
COUNT SHOWS BEFORE 1970Shows before a year
COUNT SHOWS WHERE ...Shows matching any WHERE condition

Examples

Song counts

COUNT "Dark Star";
COUNT "Scarlet Begonias";
COUNT "Dark Star" FROM 1972-1974;
COUNT "Scarlet Begonias" AFTER 1977;
COUNT "Saint Stephen" BEFORE 1972;
▶ Try it in sandbox →

Show counts

COUNT SHOWS;
COUNT SHOWS FROM 1977;
COUNT SHOWS BEFORE 1976;
COUNT SHOWS FROM BRENT_ERA;
▶ Try it in sandbox →

Show counts with WHERE

COUNT SHOWS WHERE "Help on the Way" > "Slipknot!" > "Franklin's Tower";
COUNT SHOWS WHERE OPENER "Bertha";
COUNT SHOWS WHERE PLAYED "Dark Star" AND NOT PLAYED "Saint Stephen";
▶ Try it in sandbox →

Song count with LYRICS

SONGS WITH LYRICS("sun", "shine") AS COUNT;
▶ Try it in sandbox →

Tips

  • COUNT returns a single number — much faster than listing all results and counting by hand.
  • COUNT SHOWS WHERE accepts the same conditions as SHOWS WHERE — segues, position, played, AND/OR.