distance measuring sensor

i want to measure length of a running rope. could anyone suggest me a good sensor?

What is a running rope?