Added frame counter; enable with -counter cmdline flag