I was about a second from asking "how many SSMEs were built" when I stumbled across
upload.wikimedia.org/wikipedia/commons/2/25/… on the RS-25 Wikipedia page and remembered that the engines and powerheads are somehow separate things and so the answer is a little complicated