Running Count Sql Function To Get Current