Entity index

Is there anyway to get an entity index of what you are looking at?

[lua]
Player:GetEyeTrace().Entity:EntIndex()
[/lua]