Delete the last line if match the string

Hi,

How to delete the last line if is match the below string else no action...

String checking "END OF FILE. ROW COUNT: "

9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|2
9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|0
229f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|3
END OF FILE. ROW COUNT: 1326542

Try:

sed '${/END OF FILE. ROW COUNT: /d;}' infile

Thanks lot,it's working fine...