get/set frame counter