ArcGIS API for JavaScript: Hosted/Count_Locations (FeatureServer)

Built using the ArcGIS API for JavaScript