Update the counting example