I want to store a paragram as a list in a variable and then call that list for counting how many times a particular word appears in that paragraph.
However, when I do th
You do
?- X = [hello,how,are,you,hello,hello], counthowmany(hello, X, N). X = [hello, how, are, you, hello, hello], N = 3.
First you first bind X ans then you ask for this specific X.
Example 2.
?- counthowmany(hello, X, N). X = [], N = 0.