diff --git a/workflow/main.nf b/workflow/main.nf
index 23c4056a76df6e78a6bc09e5c0a50bb5a49efb28..818d94934f6e24cfee873eb730005367da744260 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -405,10 +405,7 @@ process peakAnnotation {
 }
 
 // Define channel to find number of unique experiments
-peaksDesign = Channel
-              .fromPath(uniqueExperiments)
-              .readLines()
-              .count()
+peaksDesign = uniqueExperiments.readLines().size()
 
 // Calculate Differential Binding Activity
 process diffPeaks {