Sample used in the post about using total count in custom read scripts