add util package and convert process_count to use it.