user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbx
  lea    D6(%rip),%rdi
  sub    $0xd0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %al,%al
  jle    L384
  movsbl %al,%eax
  mov    %rbx,%rdx
  xor    %esi,%esi
  sub    $0x1,%eax
  lea    0x1(%rsp,%rax,1),%rcx
  nopl   0x0(%rax)
L78:
  movzbl (%rdx),%eax
  cmp    $0x61,%al
  je     L407
  cmp    $0x64,%al
  je     L407
  cmp    $0x67,%al
  jne    L197
  nopw   0x0(%rax,%rax,1)
L407:
  add    $0x1,%esi
L133:
  add    $0x1,%rdx
  cmp    %rdx,%rcx
  jne    L78
L327:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L218
  add    $0xd0,%rsp
  xor    %eax,%eax
  pop    %rbx
  ret
L197:
  cmp    $0x6a,%al
  je     L407
  cmp    $0x6d,%al
  je     L407
  cmp    $0x70,%al
  je     L407
  cmp    $0x74,%al
  je     L407
  cmp    $0x77,%al
  je     L407
  cmp    $0x20,%al
  je     L407
  cmp    $0x41,%al
  je     L407
  cmp    $0x44,%al
  je     L407
  cmp    $0x47,%al
  je     L407
  cmp    $0x4a,%al
  je     L407
  cmp    $0x4d,%al
  je     L407
  cmp    $0x50,%al
  je     L407
  cmp    $0x54,%al
  je     L407
  cmp    $0x57,%al
  je     L407
  cmp    $0x62,%al
  jne    L491
  cs nopw 0x0(%rax,%rax,1)
L261:
  add    $0x2,%esi
  jmp    L133
L491:
  cmp    $0x65,%al
  je     L261
  cmp    $0x6b,%al
  je     L261
  cmp    $0x68,%al
  je     L261
  cmp    $0x6e,%al
  je     L261
  cmp    $0x71,%al
  je     L261
  cmp    $0x75,%al
  je     L261
  cmp    $0x78,%al
  je     L261
  cmp    $0x42,%al
  je     L261
  cmp    $0x45,%al
  je     L261
  cmp    $0x4b,%al
  je     L261
  cmp    $0x48,%al
  je     L261
  cmp    $0x4e,%al
  je     L261
  cmp    $0x51,%al
  je     L261
  cmp    $0x55,%al
  je     L261
  cmp    $0x58,%al
  je     L261
  cmp    $0x63,%al
  jne    L7
  nopl   0x0(%rax,%rax,1)
L367:
  add    $0x3,%esi
  jmp    L133
L7:
  cmp    $0x66,%al
  je     L367
  cmp    $0x69,%al
  je     L367
  cmp    $0x6c,%al
  je     L367
  cmp    $0x6f,%al
  je     L367
  cmp    $0x72,%al
  je     L367
  cmp    $0x76,%al
  je     L367
  cmp    $0x79,%al
  je     L367
  cmp    $0x43,%al
  je     L367
  cmp    $0x46,%al
  je     L367
  cmp    $0x49,%al
  je     L367
  cmp    $0x4c,%al
  je     L367
  cmp    $0x4f,%al
  je     L367
  cmp    $0x52,%al
  je     L367
  cmp    $0x56,%al
  je     L367
  cmp    $0x59,%al
  je     L367
  cmp    $0x73,%al
  jne    L68
L128:
  add    $0x4,%esi
  jmp    L133
L68:
  cmp    $0x7a,%al
  je     L128
  cmp    $0x53,%al
  je     L128
  cmp    $0x5a,%al
  je     L128
  jmp    L133
L384:
  xor    %esi,%esi
  jmp    L327
L218:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D6
datatype: string
name: parse_data
arguments: data_tag: D5
datatype: string

tool: D6: %[^
]s

tool: D5: 
%d

assistant: ```c
int main() {
  char Nokia[200], l;
  int counter = 0, count;
  scanf("%[^\n]s", Nokia);
  l = strlen(Nokia);
  for (count = 0; count < l; count++) {
    if (Nokia[count] == 'a')
      counter++;
    if (Nokia[count] == 'd')
      counter++;
    if (Nokia[count] == 'g')
      counter++;
    if (Nokia[count] == 'j')
      counter++;
    if (Nokia[count] == 'm')
      counter++;
    if (Nokia[count] == 'p')
      counter++;
    if (Nokia[count] == 't')
      counter++;
    if (Nokia[count] == 'w')
      counter++;
    if (Nokia[count] == ' ')
      counter++;
    if (Nokia[count] == 'A')
      counter++;
    if (Nokia[count] == 'D')
      counter++;
    if (Nokia[count] == 'G')
      counter++;
    if (Nokia[count] == 'J')
      counter++;
    if (Nokia[count] == 'M')
      counter++;
    if (Nokia[count] == 'P')
      counter++;
    if (Nokia[count] == 'T')
      counter++;
    if (Nokia[count] == 'W')
      counter++;
    if (Nokia[count] == 'b')
      counter = counter + 2;
    if (Nokia[count] == 'e')
      counter = counter + 2;
    if (Nokia[count] == 'k')
      counter = counter + 2;
    if (Nokia[count] == 'h')
      counter = counter + 2;
    if (Nokia[count] == 'n')
      counter = counter + 2;
    if (Nokia[count] == 'q')
      counter = counter + 2;
    if (Nokia[count] == 'u')
      counter = counter + 2;
    if (Nokia[count] == 'x')
      counter = counter + 2;
    if (Nokia[count] == 'B')
      counter = counter + 2;
    if (Nokia[count] == 'E')
      counter = counter + 2;
    if (Nokia[count] == 'K')
      counter = counter + 2;
    if (Nokia[count] == 'H')
      counter = counter + 2;
    if (Nokia[count] == 'N')
      counter = counter + 2;
    if (Nokia[count] == 'Q')
      counter = counter + 2;
    if (Nokia[count] == 'U')
      counter = counter + 2;
    if (Nokia[count] == 'X')
      counter = counter + 2;
    if (Nokia[count] == 'c')
      counter = counter + 3;
    if (Nokia[count] == 'f')
      counter = counter + 3;
    if (Nokia[count] == 'i')
      counter = counter + 3;
    if (Nokia[count] == 'l')
      counter = counter + 3;
    if (Nokia[count] == 'o')
      counter = counter + 3;
    if (Nokia[count] == 'r')
      counter = counter + 3;
    if (Nokia[count] == 'v')
      counter = counter + 3;
    if (Nokia[count] == 'y')
      counter = counter + 3;
    if (Nokia[count] == 'C')
      counter = counter + 3;
    if (Nokia[count] == 'F')
      counter = counter + 3;
    if (Nokia[count] == 'I')
      counter = counter + 3;
    if (Nokia[count] == 'L')
      counter = counter + 3;
    if (Nokia[count] == 'O')
      counter = counter + 3;
    if (Nokia[count] == 'R')
      counter = counter + 3;
    if (Nokia[count] == 'V')
      counter = counter + 3;
    if (Nokia[count] == 'Y')
      counter = counter + 3;
    if (Nokia[count] == 's')
      counter = counter + 4;
    if (Nokia[count] == 'z')
      counter = counter + 4;
    if (Nokia[count] == 'S')
      counter = counter + 4;
    if (Nokia[count] == 'Z')
      counter = counter + 4;
  }
  printf("\n%d", counter);
  return 0;
}
```