Can you vary how many diazepam tablets a day?

Not a good idea. Diazepam is a strong, long-lasting "benzodiazepine" with a significant potential for dependency. There are good reasons for its being prescribed, but needs to be regulated carefully and steadily by a supervising md (who might have reasons for raising or lowering the dose).