Merge Static and dynamic parts in variable declaration

Dear Unix experts

I want to define a variable which contains dynmic and static part, daynamic part is the first field.

Sample of data

dddd aaaa sssss 12345
ssss 2323 234234 4242
dddd 3223 34234 54353
ssss 24234 3434 42342
dddd rwrw 423423 werwer

nawk 'BEGIN {FS=" "}{ $1"_subs"=$1"_subs"+1}END {print dddd_subs}'

it should give me 3

but it gives me error "nawk: syntax error at source line 1
context is
BEGIN {FS=";"}{ >>> $1""subs= <<< $1""subs+1}
nawk: illegal statement at source line 1"

Can you please help ?
Many thanks in advance

---------- Post updated at 07:03 AM ---------- Previous update was at 04:47 AM ----------

I also tried

nawk 'BEGIN {FS=";"}{ subs[$1]=+1}END {print subs[dddd]}

but the results were always 1!!!!

 
it should give me 3

how ?

can you please post sample input and output expected ?

i write the command in this way
awk '{subs[$1]+=1}END{print subs["dddd"]}'
input context is what you post
it gives 3

$1"_subs"?
i just saw this kind of variable in "MakeFile",maybe shell doesn't support

its like assigning variable part in variables.

Eample in the thread above assign variable ($1) with fied part

line 1 ; $1=dddd, so first variable created is dddd_subs ?

and what is done wrong in first example ?

Not sure , but it seems , my understanding capabilities are poor :frowning:

Ok ,

This is the input :

dddd aaaa sssss 12345
ssss 2323 234234 4242
dddd 3223 34234 54353
ssss 24234 3434 42342
dddd rwrw 423423 werwer

and the output you want is , how many no of times the lines with the "dddd" are occurred in the input ( in the first field) ?. is it right?