Change visibility for countProducts method to protected
Clean list tree response method in twig extension