C++ application to count the vote in custom format from sms