Tab counter -------------------------------------------------------------

Any idea how to implement something like this ?
as you see on the screenshot there are number which represent number of records qualifying for a specific filer (queue). So one Tab shows all records, then another one show a few which met the criteria.
Getting the data from the database is rather simply, but my question is how to place the variables ith specific results on the TAB without selecting any specific Tab ?
As an example I mi ght have a data which shows the cars, but they are in two categories: CARS and TRUCK, and I want to show the COUNT() from each category in a separate tab.

https://tinypic.host/image/2025-02-04-12h28-34.2eGauv