public with sharing class ActiveUserCountHandler { public static void handleActiveUserCount() { Integer activeCount = [SELECT COUNT() FROM User WHERE IsActive = true and Profile.UserLicense.name = 'Salesforce']; FeatureParameter.setActiveUserCount(activeCount); } }