Created a method for getting the request size