i am having a status file which is of following format:
'bla bla
1 1 1 9 2 11 0.0100 0.0100 0.01000
1 2 1 2 1 3 0.503 0.503 0.1709
1 3 1 2 1 3 0.759 0.759 0.2563
1 4 1 3 2 5 1.00 1.00 0.2411
2 1 1 0 1 1 2.00 1.00 1.000
3 1 1 10 1 11 2.20 0.200 0.2000
3 2 1 13 2 15 2.40 0.400 0.200
4 1 1 10 1 11 2.20 0.200 0.2000
4 2 1 10 1 11 2.20 0.200 0.2000
4 3 1 10 1 11 2.20 0.200 0.2000
blah blah'
Now how can I know how many number of times 1,2,3 etc appear in the first column?
The answer for the above .sta
file would be [4 1 2] (i.e 4 is the number of times 1 appears in the first column).