// Count for Team
$('li.filter').each(
function() {
if (typeof($(this).attr('data-filter')) !== typeof(undefined)) {
$(this).append($($(this).attr('data-filter'), $('section.cd-gallery')).length)
} else {
$(this).append($('.mix', $('section.cd-gallery')).length)
}
}
)
// Count for Role
$('label.checkbox-label').each(
function() {
$(this).parent().append($($(this).prev().attr('data-filter'), $('section.cd-gallery')).length)
}
)
// Count for Distance
$('label.radio-label').each(
function() {
if ($(this).prev().attr('data-filter') !== "") {
$(this).parent().append($($(this).prev().attr('data-filter'), $('section.cd-gallery')).length)
} else {
$(this).parent().append($('.mix', $('section.cd-gallery')).length)
}
}
)