#include <stdio.h>
 int main(void){
    int n, k,d,a;
   scanf("%d %d", &n, &k);
   int data[n];
   for (int i = 0; i < n; i++){
      data[i] = 0;
   }
   for (int i = 0; i < k; i++){
      scanf("%d", &d);
      for (int j = 0; j < d; j++){
         scanf("%d", &a);
         data[a - 1]++;
      }
   }
   int count = 0;
   for (int i = 0; i < n; i++){
      if (data[i] == 0){
         count++;
      }
   }
   printf("%d", count);
}
