Add derived total-count
Add more derive functions
Merge derive counters to single list
Add debug counters