I'm attempting exercise 1-8 in the K&R book but having an issue with the amount of newlines being found:

Write a program to count blanks, tabs and newlines.

```
#include <stdio.h>

main()
{
    int c, nl, tabs, blanks;

    nl, tabs, blanks = 0;
    while ((c = getchar()) != EOF)
    {
            if (c == '\n')
                    ++nl;
                    printf("%d\n", nl);
            if (c == ' ')
                    ++blanks;
            if (c == '\t')
                    ++tabs;
    }
    printf("\n Blanks: %d\nNewlines: %d\nTabs: %d\n\n", blanks, nl, tabs);
}

```

I run the program on itself and the output I receive is:

```none
Blanks: 32 
Newlines: -1216989677
Tabs: 25

```

Why is this happening? My first thought was that it could be the minimum possible number of an integer but I checked and I don't believe its that.