split diff and counting