Count lines using git objects instead of filesystem.