Global frame counter.