PHP-Ajax Line Counting System