Update count_inv.c

Added merge_count_split_inv subroutine