#include <stdio.h>
 
int main(void){
   int N, K;

   scanf("%d %d",&N,&K);

   int d[K], A[K][N], i, j, B[N], ans=0;

   for(i=0;i<K;i=i+1){
      scanf("%d",&d[i]);

      for(j=0;j<d[i];j=j+1){
         scanf("%d",&A[i][j]);
      }
   }

   for(i=0;i<N;i=i+1)
      B[i]=0;
   
   for(i=0;i<K;i=i+1){
      for(j=0;j<d[i];j=j+1){
         B[(A[i][j]-1)]=B[(A[i][j]-1)]+1;
      }
   }  
   
   for(i=0;i<N;i=i+1){
      if(B[i]==0)
      ans=ans+1;
   }

   printf("%d\n",ans);
   
   return 0;
}