counting frames