Hi @Meenal Gharat,

a small mistake in addAggregate() and getAggregate() functions. You need to pass second paramter as the field name on which you need to do aggregate o find count. 

addAggregate('COUNT', 'FIELD NAME');

getAggregate('COUNT', 'FIELD NAME'); 

Hope that Helps!

Thanks & Regards,

Sharjeel

Regards,
Muhammad