add more functions: dfCount, moveBack, moveFront, plotCount, and private functions