I have a text file which will look like this
:Hand 1:
:Hand 2:
:Hand 4:
:Hand 3:
:Hand 3::Hand 1:
:Hand 2:
:Hand 1:
:Hand 4:
:Hand 4:
:Hand 3:
:Hand 3:
:Hand 3::Hand 4:
So now what I want to know is how do I get the maximum count of lines which contain :Hand 3:
eg at first its 2
:Hand 4:
:Hand 3:
:Hand 3::Hand 1:
then its 3
:Hand 4:
:Hand 3:
:Hand 3:
:Hand 3::Hand 4:
so i want this code to then return 3, if i then wanted :Hand 4: it will be 2 here
:Hand 1:
:Hand 4:
:Hand 4:
the double :Hand1::Hand2: is because sometimes there will be 2 hands per line in text file