count any php variable with one function