I have written a little TextMate command (download) that allows you to count Lines of Code of the current file:
Here, this command is being used to verify that blokk stays at 318 LoC.
It needs CodeRay 0.9.1 or later.
No markup, just plain monospace text. / Kein Markup, nur Normschrift-Klartext.