New function: sy#repo#get_stats()

It returns a list of numbers of additions, modifications and deletions
and is intended to be used by other plugins.