There are several ways to count unique visitors to a website using PHP, but one common method is to use cookies.