Count modified files and branch, depending.