Implemented simple fps counter. Closes #257.