Modification to add counts if the id follows this pattern _x\d+