trying counter to measure frames