Operation Details
Description: Count any existing cases with the given case reference.
Sterotype: ns
SQL
SELECT
  COUNT(*)
INTO
  :numberOfRecords 
FROM
  CaseHeader 
WHERE caseReference = :caseReference