After some research, I found that there are mostly relay (middle) nodes, and less exit and entry nodes. But why? The connection from the client to the entry node is encrypted, so there should be no problem.
So is it safe to run an entry and relay node, instead of a relay-only node? I am especially concerned about security, and legal considerations.