这 / 那 + [measure word] + [noun] 这些 / 那些 + [noun]
这 points at what is near the speaker, 那 at what is further away. On their own they work as the subject of a sentence.
这 and 那 need a measure word before the noun: the same one the noun takes when it is counted.
个 goes with many nouns, but not all of them. A noun with its own measure word keeps it: 这杯茶, 那张照片. A number goes between 这 or 那 and the measure word.
These go beyond pointing at things.
Before a measure word, 这 and 那 are often pronounced zhèi and nèi, especially in northern speech. The characters stay the same, and 这个 read zhèige is not a different word.
At the start of a sentence, 那 stops pointing at anything and links to what was just said.