
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main()
{
    char str[1000];
    fgets(str, sizeof(str), stdin);

    char* temp;
    temp = strtok(str, " \n");
    int sunuoNum = atoi(temp);

    int* psunao = (int*)malloc(sizeof(int) * sunuoNum);
    memset(psunao,0, sizeof(int) * sunuoNum);


    temp = strtok(NULL, " \n");
    int okashi = atoi(temp);

    for (int i = 0;i < okashi;i++)
    {
        fgets(str, sizeof(str), stdin);
 
        fgets(str, sizeof(str), stdin);

        char* hoge;
        hoge = strtok(str, " \n");

        int hogehoge;

        while (hoge != NULL)
        {
            hogehoge = atoi(hoge);
            psunao[hogehoge - 1]++;
            hoge = strtok(NULL, " \n");
        }
    }

    int PersonNum = 0;
    for (int j = 0;j < sunuoNum;j++)
    {
        if (psunao[j] == 0)
        {
            PersonNum++;
        }
    }

     printf("%d\n", PersonNum);


    return 0;
}