I have file with number of columns for example
input file
12 15 27
5 6 48
19 16 25
17 23 37
etc
I want to count all the numbers (X) in column 2 for example that fulfill the following condition 6 <= X < 20
so the result would be 3 corresponding to the numbers 15,6 and 16.