title: Prompting for user input, counting string length and reprinting input
body: <p>I am working on an assignment and stuck.  I need to prompt the user to enter a sentence using WriteString and store the input using ReadString. Additionally, I need to count the length of the string and then reprint the users input.  I dont want the code, just a push in the right direction.  I have no problem getting my program to prompt and take the user input, but I'm looking for help counting the length of the string in decimal.  </p>
  
  <pre><code>.data
  String1 BYTE "Enter a sentence", 0
  String2 BYTE 50 DUP (?)
  String3 BYTE "Decimal length: ", 0
  String4 BYTE "Hexidecimal length: ", 0
  String5 BYTE "You entered: ", 0
  
  .code
  main proc
  Exercise1 PROC
  
  mov edx, OFFSET String1 ; move String1 to edx
  call WriteString ;prompt user to enter their sentence
  mov edx, OFFSET String2 ;array to store input
  call ReadString ;store input to edx
  
  ;mov ecx, 20
  ;mov dl, 0 ;use to count length
  ;how do I loop through String2 to determine its length? 
  
  Exercise1 ENDP
  </code></pre>