I have forked today the ohcount code at GitHub and implemented support for Logtalk and Prolog. The fork is available at:
I added basic code to disambiguate between Prolog and Perl as both share the same file name extension (.pl). But I have little knowledge of Perl. I'm looking for help from Perl-savvy programmers wiling to improve the disambiguation function (found in the "src/detector.c" file; the function name is "disambiguate_pl").