If element is found . increment the total count of the triplets
if arr [ k ] == toFind : NEW_LINE INDENT totalCount += 1 NEW_LINE DEDENT print ( ' Total ▁ number ▁ of ▁ triplets ▁ found : ▁ ' , totalCount ) NEW_LINE