adding getPayloadCount and getErrorCount to DataPackage