Fix some issues on count skill by term service (just count active job, validate input)