This sounds wrong...so I thought I'd see what Notepad++ has built into its syntax highlighting lexer (langs.model.xml):
* ~ 35, Python
* ~ 53, Java
* ~ 59, Ruby
* ~189, Bash
* ~253, Perl <=====
* ~928, PHP
Perl has a higher keyword count than Ruby or Python, but remember Perl's keyword list includes its core socket/network library (which Ruby/Python/Java don't contain in theirs...according to Notepad++).