x="This is a test"
y="${x//[^s]}"
echo "$y"
echo "${#y}"
To match both 's' and 'S', enter:
x="This is a test. S"
y="${x//[^s|S]}"
echo "${#y}"
x="This is a test"
y="${x//[^s]}"
echo "$y"
echo "${#y}"
x="This is a test. S"
y="${x//[^s|S]}"
echo "${#y}"
ffmpeg -i input.mp4 -ab 192 -ar 44100 -vol 512 output.mp3