count total before and after negative weights