求字符串个数,该如何处理

求字符串个数
C/C++ code
#include<stdio.h>
#include<string.h>
#define SIZE 81
#define LIM 100
#define STOP "quit"
int main(void)
{
    char input[LIM][SIZE];
    int ct=0,n=0;

    printf("Enter up to %d lines(type quit to quit):\n",LIM);
    while(ct<LIM&&gets(input[ct])!=NULL&&strcmp(input[ct],STOP)!=0)
    {
        ct++;
    
    }
    printf("%d strings entered\n",ct+n);
    
    return 0;
}

这个只是求有多少行字符。。我想要全部字符个数。。怎么弄啊?

------解决方案--------------------
C/C++ code

#include<stdio.h>
#include<string.h>
#define SIZE 81
#define LIM 100
#define STOP "quit"
int main(void)
{
    char input[LIM][SIZE];
    int ct=0,n=0;
    int iCharCount=0;

    printf("Enter up to %d lines(type quit to quit):\n",LIM);
    while(ct<LIM&&gets(input[ct])!=NULL&&strcmp(input[ct],STOP)!=0)
    {
        iCharCount+=strlen(input[ct]);
        ct++;
    
    }
    printf("%d strings entered\n",ct+n);
    printf("%d char entered\n",iCharCount);
    return 0;
}