magit-rev-diff-count: use cl- prefixed functions
magit-compat.el: test for correct function