@SayedWali-  Just to recap and post the solution here, rather than in a private message:
var portal = Portal('https://npaid.maps.arcgis.com');
var FAR = FeatureSetByPortalItem(
    portal,
    '56db417ebbc541bcbb6ccf9c49524cc9',
    0,
    ['*'],
    false
)
var PDIA = FeatureSetByPortalItem(
    portal,
    '56db417ebbc541bcbb6ccf9c49524cc9',
    0,
    ['*'],
    false
)
var total_count = Count(FAR) + Count(PDIA)
var outDict = {
    fields: [{ name: 'total', type: 'esriFieldTypeInteger'}],
    geometryType: '',
    features: [{attributes: {total: total_count}}],
};
// Return dictionary cast as a feature set
return FeatureSet(Text(outDict));
 
					
				
			
			
				
	- Josh Carlson
Kendall County GIS