add a simple fps counter class