please help program not counting objects

i dunno why this program doesnt count the last 4 couts of the files. can someone let me know what i am doing wrong.

#include <fstream>
#include <iostream>
#include <string>

using namespace std;

void Introduction() // void statement what program does
{
cout << "This program is used to read a text file with various zip codes .\n"
<< "The first output will be a corrected tab showing the 4 digit zip .\n"
<< "codes as 5 digit zip coes with leading zeros.\n"
<< "The second output will show the Pennsylvania zip codes only " << endl << endl;

index=line.find("\t"); // goes through line finds first tab
if (line.substr(index+1,2)=="PA" ) // once the first 2 letters after tab is PA it counts
{
numberofPA++; // counts number of PA
outfile << line << endl; //outputs PA information in text file
}

index=line.find("\t"); // goes through line finds first tab
if (line.substr(index+1,2)=="NJ" ) // once the first 2 letters after tab is NJ counts
{
numberofNJ++; // counts number of NJ
}

index=line.find("\t"); // Finds first tab
if (line.substr(index+1,2)=="NY" ) // if find tab and next two spaces of are NY counts
{
numberofNY++; // counts number of NY
}