UIkit filter results counter
// Get count of filtered items
let count = 0;
UIkit.util.on('div[uk-filter]', 'afterFilter', () => {
UIkit.util.$$('.work-filter > li').forEach((item) => {
if (UIkit.util.isVisible(item))
count ++
})
// Update and reset count
$('#filter-results').text(count)
count = 0
})