SELECT COUNT(SOURCE_ID) FROM CNFG_RESOURCE_SCHEDULE WHERE SOURCE_ID='{0}' UNION ALL SELECT COUNT(SOURCE_ID) FROM DATA_FILES WHERE SOURCE_ID='{0}‘