added a physics frame counter