triangle count - alpha version