Returns the number of ordered pairs ( i , j ) for which point ( arr [ i ] , arr [ j ] ) satisfies the equation of the line y = mx + c
function findOrderedPoints ( $ arr , $ n , $ m , $ c ) { $ counter = 0 ;