Assuming that the enum is sequential you can do this, otherwise i don't think there is.
Code:
#include <sourcemod>
enum EnumRows
{
VAR1=0,
VAR2,
VAR3,
VAR4,
COUNT
};
public void OnPluginStart()
{
int rows = view_as<int>(COUNT - VAR1);
PrintToServer("%d", rows);
}
__________________