Enter the world of variable variables:
You are very close.
echo $id_of_nr.$count;
In effect you want to detatch that first $ sign from id_of_nr, and not use it until after $count has been concatenated.
echo ${'id_of_nr'.$count};
Note the quotes - you are wanting to use id_of_nr as a string, after all.
If $count is 4, for example, PHP will go
${'id_of_nr'.$count}
${'id_of_nr'.4}
${'id_of_nr4'}
$id_of_nr4
and peace will spread throughout the land :-)