This replaces the var in the source struct that was used to print out the number of captured frames with a local one.