Update mainwindow.cpp

added string: countSendPackage += str.size();