Question: Sentence 1: The cattle roam across the prairie.
Sentence 2: The gypsies roamed the woods.
Does roam mean the same thing in these two sentences?
============
Answer: the same meaning

Question: Sentence 1: A hard theory to put into practice.
Sentence 2: That may work in theory, but will it work in practice?
Does practice mean the same thing in these two sentences?
============
Answer: the same meaning

Question: Sentence 1: The number of parameters is small.
Sentence 2: He had a number of chores to do.
Does number mean the same thing in these two sentences?
============
Answer:
the same meaning