FacetWP – remove space before counter

<?php

add_filter( 'facetwp_facet_html', function( $output, $params ) {
    $output = str_replace( ' <span class="facetwp-counter">', '<span class="facetwp-counter">', $output );
    return $output;
}, 10, 2 );