JSFiddle - React, Tailwind, and code Playground
HTML
<head>
</head>
<body>
<input value="One"><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
);
});