add logging of mimetype count