# Sub-level count function not working when filter applied