define _GNU_SOURCE to get strdup on debian (dorks)
count messages