You have two options to generate this number depending on the data you need for your report.

Option 1: Program Query 
You should use a program query to calculate the number of events your organization offered if you want to include any program or program event regardless of whether or not tickets were sold to the program/event. 
  1. Go to Analysis > Information Library 
  2. Click Add a new ad-hoc query 
  3. Select the source view of Program Query and click OK
  4. From the left column, highlight Program Events. In the middle column, drag Start Date to Include Records where. Set this to be equal to the time frame you're looking for. For example: if you want to calculate all of the programs that occurred this year, your field would look like this: Program Events\Start date is this calendar year 
  5. (Optional) If you also want to list any Daily Admission programs your organization offers, highlight Program Query at the top of the left column and drag Is daily admission? to Include records where. Set this to be equal to Yes. When the field is added to Include Records Where, highlight the field and change the and to an or statement. Note: Daily Admission programs are not associated with a date or time. 
  6. Next, add the fields you need in your report to Results Fields to Display. Here are a few suggestions:
    1. Highlight Program Query in the left column. From the middle column, drag Category to Results fields to display to show program category (for example: tours, family programs, education programs, camps, classes). 
    2. To show Program Event Name or Date, in the left column, highlight Program Events. From the middle column, drag Name and/or Start Date and/or Start Time to Results Fields to Display. If you'd like to summarize how many events in each program were offered this year, you can also apply a Count function to either of these fields. Note: If you are including Daily Admission programs, their count will be 0 since there are no scheduled events for Daily Admission programs. Here is an example of a finished query: User-added image
Option 2: Use a Sales Order Query 
You should use a sales order query if you want to include any program or program event only if tickets were sold to that program. You can also use a sales order query to report on how many tickets were sold to each program as well. 
  1. Go to Analysis > Information Library 
  2. Click Add an ad-hoc query 
  3. Select the source view of Sales Orders and click OK
  4. From the left column, expand Sales Order Item, expand Sales Order Item Ticket, and highlight Program Events. From the middle column, drag Start date to Include records where. Set this to be equal to the date range you're looking to analyze. For example, if we want to include any program that happened this year, our field would look like this: Sales Order Item/Sales Order Item/Sales Order Item Ticket/Program Events Start date is equal to This calendar year.  
  5. (Optional) If you also want to include any Daily Admission programs, from the left column, highlight Program under Sales Order Item Ticket (where you expanded in Step 4). From the middle column, drag Is daily admission? to Include records where and set this to be equal to yes. In addition, highlight Sales Orders at the very top of the left column. From the middle column, drag Transaction date to Include records where. Set this to be equal to the same date range in Step 4. After you've added both fields, surround them with parenthesis and add an OR statement before the first field, so it appears like this in Include Records Where: User-added image
  6. Next, add the fields you need in your report to Results Fields to Display. Here are a few suggestions:
    1. To see Program Name and Category, in the left column, beneath Sales Order Item, Sales Order Item Ticket, highlight Program. From the middle column, drag Name and/or Category to Results fields to display. 
    2. To see Event Name and Date/Time, in the left column, beneath Sales Order Item, Sales Order Item Ticket, highlight Program Events. From the middle column, drag Name, Start Date, and/or Start Time to Results fields to display. 
    3. If you want to see how many tickets were active in each program (meaning tickets that weren't refunded and cancelled), in the left column beneath Sales Order Item, beneath Sales Order Item Ticket, highlight Tickets. Drag Status to Include records where and set this to be equal to Active. Next, drag Price Type to Results Fields to Display and choose to COUNT the price type. If you want a count for each event, remove Lookup ID from Results Fields to Display. Here is an example of how a final query might look: User-added image