Combined counter and corner buffers into one