8028128: Add a type safe alternative for working with counter based dataReviewed-by: dholmes, egahlin