determine count of procfs functions at compile time