The $\Omega $ Counter, a Frequency Counter Based on the Linear Regression