Merge "Add logging of written frame counts"