Updating counting code with latest practice test