average headcount formula