Counting-figure questions show a drawing made of straight lines and ask how many triangles, squares or rectangles it contains. The answer is almost never the number of small shapes you can see. Larger shapes are made by combining smaller ones, and the usual mistake is to miss some of those, or to count one twice.
Two habits fix this. First, label every point where lines meet with a letter, so each figure can be named by its corners. Second, count in a fixed order: by size, smallest first, or by a fixed starting corner. For common figure types there are also formulas, which give the answer in seconds and act as a check on your count.