I think what @nirgrahamuk wants to know is how well separated local maxima need to be, probably both horizontally and vertically. For example, how many local maxima are in this plot.
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.0.5
DF <- data.frame(Values = c(15,15,15,16,14,14,15,24,20,55,50,56,37,32,39,60,59,25,17,14,15,15,17,14,
15,15,28,65,70,52,20,15,15,15))
ggplot(DF, aes(x = 1:34, y = Values)) + geom_point() + geom_line()

Created on 2021-07-05 by the reprex package (v0.3.0)