Fix a cast error. Added rule specific counters. Added headers to check for all used headers, minus the specific included libraries