Uploading Count Words in a String Project

JavaScript solution