add setDefaultHeaders and @count class method