JSFiddle - React, Tailwind, and code Playground

HTML

<head> 
<script src="http://code.jquery.com/jquery-1.4.2.js"></script> 
</head> 
<body> 
 
<input value="Two Words"><br> 
    
<button id="bt1">Check</button> 
<div></div>

JavaScript

$('#bt1').click( function () {
    $('div').html(
        $('[value="Original"]').length + ' ' + 
        $('[value="One"]').length + ' ' + 
        $('[value="Two Words"]').length + '<br>' +
        $('[value=Original]').length + ' ' + 
        $('[value=One]').length + ' ' + 
        $('[value=Two Words]').length
    );
});