Add BytesWritten counter.

Change-Id: If31f447a9dd38a9932b78a527c31f983cae749bd
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1711
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins