Operation Details
Description: Counts the number of planItems with a specified reference number.
Sterotype: ns
SQL
SELECT
  COUNT(*)
INTO
  :numPlanItems 
FROM
  PlanItem 
WHERE PlanItem.planItemReference = :planItemReference