public numeric function getQueuedCount( required string templateId )
Gets a count of queued emails for the given template.