there must be white (blank paper) around the pattern.
only internal nodes count.
your first picture counts as 9 by 7.