Added initial loging system (by cout). Currects algorithm to compute initial property count only once.