#include <stdio.h>

int main() {
    char para[50];
    fgets(para,50,stdin);
    int count=0;
    for (int i=0; para[i] != '\0'; i++) {
        count++;
    }
    printf("You typed %d characters", count);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: