Implement count variates
Reviewer: Dan Jao
Issue: GCP-8918