revised process_LCA_counts.r