/* Determines the length of the MQTT unsubscribe packet that would be produced using the supplied parameters  */
static int unsubscribe_length(int count, mqtt_string_t topicFilters[])
/* Determines the length of the MQTT unsubscribe packet that would be produced using the supplied parameters  */
static int unsubscribe_length(int count, mqtt_string_t topicFilters[])
{
	int i;
	int len = 2;
	for (i = 0; i < count; ++i)
		len += 2 + mqtt_strlen(topicFilters[i]);
	return len;
}