Editor's note: An earlier version of this post misstated Kyle A. Duppins’s age. He is 27, not 37. This post has been updated.

A Montgomery County man accused of stabbing a man inside a hotel room 21 times was sentenced to 10 years in prison Tuesday after he pleaded guilty to second-degree attempted murder. Kyle A. Duppins, 27, of Damascus, also faces three years of probation after his release.

Early the morning of March 4, two guests at the Red Roof Inn in Rockville left to get something to eat at McDonald’s. Before the man and woman could drive off, they were accosted by Duppins, who was armed with a knife and demanded money, prosecutors said in court Tuesday.

The female victim ran back to their hotel room. Duppins forced the man to follow her, holding a knife to his neck. He attacked the man once inside, according to authorities. The victim survived and Duppins fled.

A short time later, a police officer found Duppins nearby. The officer spotted a hunting-style knife covered in blood in his rear pocket. Duppins later told a detective he had been drinking gin and beer. When asked about the knife, according to charging documents, Duppins said the weapon was named “Jack” and that another knife named “Jill” was its twin.

Duppins originally was charged with first-degree, attempted murder, but he pleaded guilty to the lesser charge as part of an agreement with prosecutors.