YouTube does count your views even if you are not logged into an account. However, logging in to YouTube will help you get video suggestions based on your YouTube history.