Added a frame counting program.